Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ash / system / tray / system_tray_delegate.cc
blob1cfb5e5ded031e557e33e958b921d3d74249825e
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/system/tray/system_tray_delegate.h"
7 #include "base/logging.h"
9 namespace ash {
11 NetworkIconInfo::NetworkIconInfo()
12 : connecting(false),
13 connected(false),
14 tray_icon_visible(true),
15 is_cellular(false) {
18 NetworkIconInfo::~NetworkIconInfo() {
21 BluetoothDeviceInfo::BluetoothDeviceInfo()
22 : connected(false), connecting(false), paired(false) {
25 BluetoothDeviceInfo::~BluetoothDeviceInfo() {
28 IMEInfo::IMEInfo() : selected(false), third_party(false) {
31 IMEInfo::~IMEInfo() {
34 IMEPropertyInfo::IMEPropertyInfo() : selected(false) {
37 IMEPropertyInfo::~IMEPropertyInfo() {
40 UpdateInfo::UpdateInfo()
41 : severity(UPDATE_NORMAL),
42 update_required(false),
43 factory_reset_required(false) {
46 UpdateInfo::~UpdateInfo() {
49 SystemTrayDelegate::SystemTrayDelegate() {
52 SystemTrayDelegate::~SystemTrayDelegate() {
55 void SystemTrayDelegate::Initialize() {
58 void SystemTrayDelegate::Shutdown() {
61 bool SystemTrayDelegate::GetTrayVisibilityOnStartup() {
62 return false;
65 user::LoginStatus SystemTrayDelegate::GetUserLoginStatus() const {
66 return user::LOGGED_IN_NONE;
69 void SystemTrayDelegate::ChangeProfilePicture() {
72 const std::string SystemTrayDelegate::GetEnterpriseDomain() const {
73 return std::string();
76 const base::string16 SystemTrayDelegate::GetEnterpriseMessage() const {
77 return base::string16();
80 const std::string SystemTrayDelegate::GetSupervisedUserManager() const {
81 return std::string();
84 const base::string16 SystemTrayDelegate::GetSupervisedUserManagerName() const {
85 return base::string16();
88 const base::string16 SystemTrayDelegate::GetSupervisedUserMessage() const {
89 return base::string16();
92 bool SystemTrayDelegate::IsUserSupervised() const {
93 return false;
96 bool SystemTrayDelegate::IsUserChild() const {
97 return false;
100 void SystemTrayDelegate::GetSystemUpdateInfo(UpdateInfo* info) const {
101 info->severity = UpdateInfo::UPDATE_NORMAL;
102 info->update_required = false;
103 info->factory_reset_required = false;
106 base::HourClockType SystemTrayDelegate::GetHourClockType() const {
107 return base::k24HourClock;
110 void SystemTrayDelegate::ShowSettings() {
113 bool SystemTrayDelegate::ShouldShowSettings() {
114 return false;
117 void SystemTrayDelegate::ShowDateSettings() {
120 void SystemTrayDelegate::ShowSetTimeDialog() {
123 void SystemTrayDelegate::ShowNetworkSettingsForGuid(const std::string& guid) {
126 void SystemTrayDelegate::ShowDisplaySettings() {
129 void SystemTrayDelegate::ShowChromeSlow() {
132 bool SystemTrayDelegate::ShouldShowDisplayNotification() {
133 return false;
136 void SystemTrayDelegate::ShowIMESettings() {
139 void SystemTrayDelegate::ShowHelp() {
142 void SystemTrayDelegate::ShowAccessibilityHelp() {
145 void SystemTrayDelegate::ShowAccessibilitySettings() {
148 void SystemTrayDelegate::ShowPublicAccountInfo() {
151 void SystemTrayDelegate::ShowEnterpriseInfo() {
154 void SystemTrayDelegate::ShowSupervisedUserInfo() {
157 void SystemTrayDelegate::ShowUserLogin() {
160 void SystemTrayDelegate::SignOut() {
163 void SystemTrayDelegate::RequestLockScreen() {
166 void SystemTrayDelegate::RequestRestartForUpdate() {
169 void SystemTrayDelegate::GetAvailableBluetoothDevices(
170 BluetoothDeviceList* list) {
173 void SystemTrayDelegate::BluetoothStartDiscovering() {
176 void SystemTrayDelegate::BluetoothStopDiscovering() {
179 void SystemTrayDelegate::ConnectToBluetoothDevice(const std::string& address) {
182 void SystemTrayDelegate::GetCurrentIME(IMEInfo* info) {
185 void SystemTrayDelegate::GetAvailableIMEList(IMEInfoList* list) {
188 void SystemTrayDelegate::GetCurrentIMEProperties(IMEPropertyInfoList* list) {
191 void SystemTrayDelegate::SwitchIME(const std::string& ime_id) {
194 void SystemTrayDelegate::ActivateIMEProperty(const std::string& key) {
197 void SystemTrayDelegate::ManageBluetoothDevices() {
200 void SystemTrayDelegate::ToggleBluetooth() {
203 bool SystemTrayDelegate::IsBluetoothDiscovering() {
204 return false;
207 void SystemTrayDelegate::ShowOtherNetworkDialog(const std::string& type) {
210 bool SystemTrayDelegate::GetBluetoothAvailable() {
211 return false;
214 bool SystemTrayDelegate::GetBluetoothEnabled() {
215 return false;
218 bool SystemTrayDelegate::GetBluetoothDiscovering() {
219 return false;
222 void SystemTrayDelegate::ChangeProxySettings() {
225 CastConfigDelegate* SystemTrayDelegate::GetCastConfigDelegate() const {
226 return nullptr;
229 NetworkingConfigDelegate* SystemTrayDelegate::GetNetworkingConfigDelegate()
230 const {
231 return nullptr;
234 VolumeControlDelegate* SystemTrayDelegate::GetVolumeControlDelegate() const {
235 return nullptr;
238 void SystemTrayDelegate::SetVolumeControlDelegate(
239 scoped_ptr<VolumeControlDelegate> delegate) {
242 bool SystemTrayDelegate::GetSessionStartTime(
243 base::TimeTicks* session_start_time) {
244 return false;
247 bool SystemTrayDelegate::GetSessionLengthLimit(
248 base::TimeDelta* session_length_limit) {
249 return false;
252 int SystemTrayDelegate::GetSystemTrayMenuWidth() {
253 return 0;
256 void SystemTrayDelegate::ActiveUserWasChanged() {
259 bool SystemTrayDelegate::IsSearchKeyMappedToCapsLock() {
260 return false;
263 tray::UserAccountsDelegate* SystemTrayDelegate::GetUserAccountsDelegate(
264 const std::string& user_id) {
265 return nullptr;
268 void SystemTrayDelegate::AddCustodianInfoTrayObserver(
269 CustodianInfoTrayObserver* observer) {
272 void SystemTrayDelegate::RemoveCustodianInfoTrayObserver(
273 CustodianInfoTrayObserver* observer) {
276 void SystemTrayDelegate::AddShutdownPolicyObserver(
277 ShutdownPolicyObserver* observer) {
280 void SystemTrayDelegate::RemoveShutdownPolicyObserver(
281 ShutdownPolicyObserver* observer) {
284 void SystemTrayDelegate::ShouldRebootOnShutdown(
285 const RebootOnShutdownCallback& callback) {
288 VPNDelegate* SystemTrayDelegate::GetVPNDelegate() const {
289 return nullptr;
292 void SystemTrayDelegate::SetLastFocusedPodHourClockType(
293 base::HourClockType user_hour_clock_type) {
296 } // namespace ash