Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: ash/common/system/tray/system_tray_delegate.cc

Issue 2761993002: cros: Eliminate bluetooth methods from SystemTrayDelegate (Closed)
Patch Set: review comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/system/tray/system_tray_delegate.h" 5 #include "ash/common/system/tray/system_tray_delegate.h"
6 6
7 #include "ash/common/system/tray/ime_info.h" 7 #include "ash/common/system/tray/ime_info.h"
8 #include "ash/common/system/tray/system_tray_item.h" 8 #include "ash/common/system/tray/system_tray_item.h"
9 9
10 namespace ash { 10 namespace ash {
11 11
12 BluetoothDeviceInfo::BluetoothDeviceInfo()
13 : connected(false), connecting(false), paired(false) {}
14
15 BluetoothDeviceInfo::BluetoothDeviceInfo(const BluetoothDeviceInfo& other) =
16 default;
17
18 BluetoothDeviceInfo::~BluetoothDeviceInfo() {}
19
20 SystemTrayDelegate::SystemTrayDelegate() {} 12 SystemTrayDelegate::SystemTrayDelegate() {}
21 13
22 SystemTrayDelegate::~SystemTrayDelegate() {} 14 SystemTrayDelegate::~SystemTrayDelegate() {}
23 15
24 void SystemTrayDelegate::Initialize() {} 16 void SystemTrayDelegate::Initialize() {}
25 17
26 LoginStatus SystemTrayDelegate::GetUserLoginStatus() const { 18 LoginStatus SystemTrayDelegate::GetUserLoginStatus() const {
27 return LoginStatus::NOT_LOGGED_IN; 19 return LoginStatus::NOT_LOGGED_IN;
28 } 20 }
29 21
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 56 }
65 57
66 bool SystemTrayDelegate::ShouldShowNotificationTray() const { 58 bool SystemTrayDelegate::ShouldShowNotificationTray() const {
67 return false; 59 return false;
68 } 60 }
69 61
70 void SystemTrayDelegate::ShowEnterpriseInfo() {} 62 void SystemTrayDelegate::ShowEnterpriseInfo() {}
71 63
72 void SystemTrayDelegate::ShowUserLogin() {} 64 void SystemTrayDelegate::ShowUserLogin() {}
73 65
74 void SystemTrayDelegate::GetAvailableBluetoothDevices(
75 BluetoothDeviceList* list) {}
76
77 void SystemTrayDelegate::BluetoothStartDiscovering() {}
78
79 void SystemTrayDelegate::BluetoothStopDiscovering() {}
80
81 void SystemTrayDelegate::ConnectToBluetoothDevice(const std::string& address) {}
82
83 void SystemTrayDelegate::GetCurrentIME(IMEInfo* info) {} 66 void SystemTrayDelegate::GetCurrentIME(IMEInfo* info) {}
84 67
85 void SystemTrayDelegate::GetAvailableIMEList(IMEInfoList* list) {} 68 void SystemTrayDelegate::GetAvailableIMEList(IMEInfoList* list) {}
86 69
87 void SystemTrayDelegate::GetCurrentIMEProperties(IMEPropertyInfoList* list) {} 70 void SystemTrayDelegate::GetCurrentIMEProperties(IMEPropertyInfoList* list) {}
88 71
89 base::string16 SystemTrayDelegate::GetIMEManagedMessage() { 72 base::string16 SystemTrayDelegate::GetIMEManagedMessage() {
90 return base::string16(); 73 return base::string16();
91 } 74 }
92 75
93 void SystemTrayDelegate::SwitchIME(const std::string& ime_id) {} 76 void SystemTrayDelegate::SwitchIME(const std::string& ime_id) {}
94 77
95 void SystemTrayDelegate::ActivateIMEProperty(const std::string& key) {} 78 void SystemTrayDelegate::ActivateIMEProperty(const std::string& key) {}
96 79
97 void SystemTrayDelegate::ToggleBluetooth() {}
98
99 bool SystemTrayDelegate::IsBluetoothDiscovering() const {
100 return false;
101 }
102
103 bool SystemTrayDelegate::GetBluetoothAvailable() {
104 return false;
105 }
106
107 bool SystemTrayDelegate::GetBluetoothEnabled() {
108 return false;
109 }
110
111 bool SystemTrayDelegate::GetBluetoothDiscovering() {
112 return false;
113 }
114
115 NetworkingConfigDelegate* SystemTrayDelegate::GetNetworkingConfigDelegate() 80 NetworkingConfigDelegate* SystemTrayDelegate::GetNetworkingConfigDelegate()
116 const { 81 const {
117 return nullptr; 82 return nullptr;
118 } 83 }
119 84
120 bool SystemTrayDelegate::GetSessionStartTime( 85 bool SystemTrayDelegate::GetSessionStartTime(
121 base::TimeTicks* session_start_time) { 86 base::TimeTicks* session_start_time) {
122 return false; 87 return false;
123 } 88 }
124 89
(...skipping 17 matching lines...) Expand all
142 107
143 void SystemTrayDelegate::RemoveCustodianInfoTrayObserver( 108 void SystemTrayDelegate::RemoveCustodianInfoTrayObserver(
144 CustodianInfoTrayObserver* observer) {} 109 CustodianInfoTrayObserver* observer) {}
145 110
146 std::unique_ptr<SystemTrayItem> SystemTrayDelegate::CreateRotationLockTrayItem( 111 std::unique_ptr<SystemTrayItem> SystemTrayDelegate::CreateRotationLockTrayItem(
147 SystemTray* tray) { 112 SystemTray* tray) {
148 return nullptr; 113 return nullptr;
149 } 114 }
150 115
151 } // namespace ash 116 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.h ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698