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

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

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ash/common/system/tray/system_tray_bubble.cc ('k') | ash/common/system/tray/system_tray_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace ash { 7 namespace ash {
8 8
9 NetworkIconInfo::NetworkIconInfo() 9 NetworkIconInfo::NetworkIconInfo()
10 : connecting(false), 10 : connecting(false),
11 connected(false), 11 connected(false),
12 tray_icon_visible(true), 12 tray_icon_visible(true),
13 is_cellular(false) { 13 is_cellular(false) {}
14 }
15 14
16 NetworkIconInfo::~NetworkIconInfo() { 15 NetworkIconInfo::~NetworkIconInfo() {}
17 }
18 16
19 BluetoothDeviceInfo::BluetoothDeviceInfo() 17 BluetoothDeviceInfo::BluetoothDeviceInfo()
20 : connected(false), connecting(false), paired(false) { 18 : connected(false), connecting(false), paired(false) {}
21 }
22 19
23 BluetoothDeviceInfo::~BluetoothDeviceInfo() { 20 BluetoothDeviceInfo::~BluetoothDeviceInfo() {}
24 }
25 21
26 IMEInfo::IMEInfo() : selected(false), third_party(false) { 22 IMEInfo::IMEInfo() : selected(false), third_party(false) {}
27 }
28 23
29 IMEInfo::IMEInfo(const IMEInfo& other) = default; 24 IMEInfo::IMEInfo(const IMEInfo& other) = default;
30 25
31 IMEInfo::~IMEInfo() { 26 IMEInfo::~IMEInfo() {}
32 }
33 27
34 IMEPropertyInfo::IMEPropertyInfo() : selected(false) { 28 IMEPropertyInfo::IMEPropertyInfo() : selected(false) {}
35 }
36 29
37 IMEPropertyInfo::~IMEPropertyInfo() { 30 IMEPropertyInfo::~IMEPropertyInfo() {}
38 }
39 31
40 UpdateInfo::UpdateInfo() 32 UpdateInfo::UpdateInfo()
41 : severity(UPDATE_NORMAL), 33 : severity(UPDATE_NORMAL),
42 update_required(false), 34 update_required(false),
43 factory_reset_required(false) { 35 factory_reset_required(false) {}
44 }
45 36
46 UpdateInfo::~UpdateInfo() { 37 UpdateInfo::~UpdateInfo() {}
47 }
48 38
49 SystemTrayDelegate::SystemTrayDelegate() { 39 SystemTrayDelegate::SystemTrayDelegate() {}
50 }
51 40
52 SystemTrayDelegate::~SystemTrayDelegate() { 41 SystemTrayDelegate::~SystemTrayDelegate() {}
53 }
54 42
55 void SystemTrayDelegate::Initialize() { 43 void SystemTrayDelegate::Initialize() {}
56 }
57 44
58 void SystemTrayDelegate::Shutdown() { 45 void SystemTrayDelegate::Shutdown() {}
59 }
60 46
61 bool SystemTrayDelegate::GetTrayVisibilityOnStartup() { 47 bool SystemTrayDelegate::GetTrayVisibilityOnStartup() {
62 return false; 48 return false;
63 } 49 }
64 50
65 LoginStatus SystemTrayDelegate::GetUserLoginStatus() const { 51 LoginStatus SystemTrayDelegate::GetUserLoginStatus() const {
66 return LoginStatus::NOT_LOGGED_IN; 52 return LoginStatus::NOT_LOGGED_IN;
67 } 53 }
68 54
69 void SystemTrayDelegate::ChangeProfilePicture() { 55 void SystemTrayDelegate::ChangeProfilePicture() {}
70 }
71 56
72 std::string SystemTrayDelegate::GetEnterpriseDomain() const { 57 std::string SystemTrayDelegate::GetEnterpriseDomain() const {
73 return std::string(); 58 return std::string();
74 } 59 }
75 60
76 base::string16 SystemTrayDelegate::GetEnterpriseMessage() const { 61 base::string16 SystemTrayDelegate::GetEnterpriseMessage() const {
77 return base::string16(); 62 return base::string16();
78 } 63 }
79 64
80 std::string SystemTrayDelegate::GetSupervisedUserManager() const { 65 std::string SystemTrayDelegate::GetSupervisedUserManager() const {
(...skipping 19 matching lines...) Expand all
100 void SystemTrayDelegate::GetSystemUpdateInfo(UpdateInfo* info) const { 85 void SystemTrayDelegate::GetSystemUpdateInfo(UpdateInfo* info) const {
101 info->severity = UpdateInfo::UPDATE_NORMAL; 86 info->severity = UpdateInfo::UPDATE_NORMAL;
102 info->update_required = false; 87 info->update_required = false;
103 info->factory_reset_required = false; 88 info->factory_reset_required = false;
104 } 89 }
105 90
106 base::HourClockType SystemTrayDelegate::GetHourClockType() const { 91 base::HourClockType SystemTrayDelegate::GetHourClockType() const {
107 return base::k24HourClock; 92 return base::k24HourClock;
108 } 93 }
109 94
110 void SystemTrayDelegate::ShowSettings() { 95 void SystemTrayDelegate::ShowSettings() {}
111 }
112 96
113 bool SystemTrayDelegate::ShouldShowSettings() { 97 bool SystemTrayDelegate::ShouldShowSettings() {
114 return false; 98 return false;
115 } 99 }
116 100
117 void SystemTrayDelegate::ShowDateSettings() { 101 void SystemTrayDelegate::ShowDateSettings() {}
118 }
119 102
120 void SystemTrayDelegate::ShowSetTimeDialog() { 103 void SystemTrayDelegate::ShowSetTimeDialog() {}
121 }
122 104
123 void SystemTrayDelegate::ShowNetworkSettingsForGuid(const std::string& guid) { 105 void SystemTrayDelegate::ShowNetworkSettingsForGuid(const std::string& guid) {}
124 }
125 106
126 void SystemTrayDelegate::ShowDisplaySettings() { 107 void SystemTrayDelegate::ShowDisplaySettings() {}
127 }
128 108
129 void SystemTrayDelegate::ShowPowerSettings() {} 109 void SystemTrayDelegate::ShowPowerSettings() {}
130 110
131 void SystemTrayDelegate::ShowChromeSlow() { 111 void SystemTrayDelegate::ShowChromeSlow() {}
132 }
133 112
134 bool SystemTrayDelegate::ShouldShowDisplayNotification() { 113 bool SystemTrayDelegate::ShouldShowDisplayNotification() {
135 return false; 114 return false;
136 } 115 }
137 116
138 void SystemTrayDelegate::ShowIMESettings() { 117 void SystemTrayDelegate::ShowIMESettings() {}
139 }
140 118
141 void SystemTrayDelegate::ShowHelp() { 119 void SystemTrayDelegate::ShowHelp() {}
142 }
143 120
144 void SystemTrayDelegate::ShowAccessibilityHelp() { 121 void SystemTrayDelegate::ShowAccessibilityHelp() {}
145 }
146 122
147 void SystemTrayDelegate::ShowAccessibilitySettings() { 123 void SystemTrayDelegate::ShowAccessibilitySettings() {}
148 }
149 124
150 void SystemTrayDelegate::ShowPublicAccountInfo() { 125 void SystemTrayDelegate::ShowPublicAccountInfo() {}
151 }
152 126
153 void SystemTrayDelegate::ShowEnterpriseInfo() { 127 void SystemTrayDelegate::ShowEnterpriseInfo() {}
154 }
155 128
156 void SystemTrayDelegate::ShowSupervisedUserInfo() { 129 void SystemTrayDelegate::ShowSupervisedUserInfo() {}
157 }
158 130
159 void SystemTrayDelegate::ShowUserLogin() { 131 void SystemTrayDelegate::ShowUserLogin() {}
160 }
161 132
162 void SystemTrayDelegate::SignOut() { 133 void SystemTrayDelegate::SignOut() {}
163 }
164 134
165 void SystemTrayDelegate::RequestLockScreen() { 135 void SystemTrayDelegate::RequestLockScreen() {}
166 }
167 136
168 void SystemTrayDelegate::RequestRestartForUpdate() { 137 void SystemTrayDelegate::RequestRestartForUpdate() {}
169 }
170 138
171 void SystemTrayDelegate::RequestShutdown() {} 139 void SystemTrayDelegate::RequestShutdown() {}
172 140
173 void SystemTrayDelegate::GetAvailableBluetoothDevices( 141 void SystemTrayDelegate::GetAvailableBluetoothDevices(
174 BluetoothDeviceList* list) { 142 BluetoothDeviceList* list) {}
175 }
176 143
177 void SystemTrayDelegate::BluetoothStartDiscovering() { 144 void SystemTrayDelegate::BluetoothStartDiscovering() {}
178 }
179 145
180 void SystemTrayDelegate::BluetoothStopDiscovering() { 146 void SystemTrayDelegate::BluetoothStopDiscovering() {}
181 }
182 147
183 void SystemTrayDelegate::ConnectToBluetoothDevice(const std::string& address) { 148 void SystemTrayDelegate::ConnectToBluetoothDevice(const std::string& address) {}
184 }
185 149
186 void SystemTrayDelegate::GetCurrentIME(IMEInfo* info) { 150 void SystemTrayDelegate::GetCurrentIME(IMEInfo* info) {}
187 }
188 151
189 void SystemTrayDelegate::GetAvailableIMEList(IMEInfoList* list) { 152 void SystemTrayDelegate::GetAvailableIMEList(IMEInfoList* list) {}
190 }
191 153
192 void SystemTrayDelegate::GetCurrentIMEProperties(IMEPropertyInfoList* list) { 154 void SystemTrayDelegate::GetCurrentIMEProperties(IMEPropertyInfoList* list) {}
193 }
194 155
195 void SystemTrayDelegate::SwitchIME(const std::string& ime_id) { 156 void SystemTrayDelegate::SwitchIME(const std::string& ime_id) {}
196 }
197 157
198 void SystemTrayDelegate::ActivateIMEProperty(const std::string& key) { 158 void SystemTrayDelegate::ActivateIMEProperty(const std::string& key) {}
199 }
200 159
201 void SystemTrayDelegate::ManageBluetoothDevices() { 160 void SystemTrayDelegate::ManageBluetoothDevices() {}
202 }
203 161
204 void SystemTrayDelegate::ToggleBluetooth() { 162 void SystemTrayDelegate::ToggleBluetooth() {}
205 }
206 163
207 bool SystemTrayDelegate::IsBluetoothDiscovering() { 164 bool SystemTrayDelegate::IsBluetoothDiscovering() {
208 return false; 165 return false;
209 } 166 }
210 167
211 void SystemTrayDelegate::ShowOtherNetworkDialog(const std::string& type) { 168 void SystemTrayDelegate::ShowOtherNetworkDialog(const std::string& type) {}
212 }
213 169
214 bool SystemTrayDelegate::GetBluetoothAvailable() { 170 bool SystemTrayDelegate::GetBluetoothAvailable() {
215 return false; 171 return false;
216 } 172 }
217 173
218 bool SystemTrayDelegate::GetBluetoothEnabled() { 174 bool SystemTrayDelegate::GetBluetoothEnabled() {
219 return false; 175 return false;
220 } 176 }
221 177
222 bool SystemTrayDelegate::GetBluetoothDiscovering() { 178 bool SystemTrayDelegate::GetBluetoothDiscovering() {
223 return false; 179 return false;
224 } 180 }
225 181
226 void SystemTrayDelegate::ChangeProxySettings() { 182 void SystemTrayDelegate::ChangeProxySettings() {}
227 }
228 183
229 CastConfigDelegate* SystemTrayDelegate::GetCastConfigDelegate() { 184 CastConfigDelegate* SystemTrayDelegate::GetCastConfigDelegate() {
230 return nullptr; 185 return nullptr;
231 } 186 }
232 187
233 NetworkingConfigDelegate* SystemTrayDelegate::GetNetworkingConfigDelegate() 188 NetworkingConfigDelegate* SystemTrayDelegate::GetNetworkingConfigDelegate()
234 const { 189 const {
235 return nullptr; 190 return nullptr;
236 } 191 }
237 192
(...skipping 11 matching lines...) Expand all
249 204
250 bool SystemTrayDelegate::GetSessionLengthLimit( 205 bool SystemTrayDelegate::GetSessionLengthLimit(
251 base::TimeDelta* session_length_limit) { 206 base::TimeDelta* session_length_limit) {
252 return false; 207 return false;
253 } 208 }
254 209
255 int SystemTrayDelegate::GetSystemTrayMenuWidth() { 210 int SystemTrayDelegate::GetSystemTrayMenuWidth() {
256 return 0; 211 return 0;
257 } 212 }
258 213
259 void SystemTrayDelegate::ActiveUserWasChanged() { 214 void SystemTrayDelegate::ActiveUserWasChanged() {}
260 }
261 215
262 bool SystemTrayDelegate::IsSearchKeyMappedToCapsLock() { 216 bool SystemTrayDelegate::IsSearchKeyMappedToCapsLock() {
263 return false; 217 return false;
264 } 218 }
265 219
266 void SystemTrayDelegate::AddCustodianInfoTrayObserver( 220 void SystemTrayDelegate::AddCustodianInfoTrayObserver(
267 CustodianInfoTrayObserver* observer) { 221 CustodianInfoTrayObserver* observer) {}
268 }
269 222
270 void SystemTrayDelegate::RemoveCustodianInfoTrayObserver( 223 void SystemTrayDelegate::RemoveCustodianInfoTrayObserver(
271 CustodianInfoTrayObserver* observer) { 224 CustodianInfoTrayObserver* observer) {}
272 }
273 225
274 void SystemTrayDelegate::AddShutdownPolicyObserver( 226 void SystemTrayDelegate::AddShutdownPolicyObserver(
275 ShutdownPolicyObserver* observer) { 227 ShutdownPolicyObserver* observer) {}
276 }
277 228
278 void SystemTrayDelegate::RemoveShutdownPolicyObserver( 229 void SystemTrayDelegate::RemoveShutdownPolicyObserver(
279 ShutdownPolicyObserver* observer) { 230 ShutdownPolicyObserver* observer) {}
280 }
281 231
282 void SystemTrayDelegate::ShouldRebootOnShutdown( 232 void SystemTrayDelegate::ShouldRebootOnShutdown(
283 const RebootOnShutdownCallback& callback) { 233 const RebootOnShutdownCallback& callback) {}
284 }
285 234
286 VPNDelegate* SystemTrayDelegate::GetVPNDelegate() const { 235 VPNDelegate* SystemTrayDelegate::GetVPNDelegate() const {
287 return nullptr; 236 return nullptr;
288 } 237 }
289 238
290 } // namespace ash 239 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_bubble.cc ('k') | ash/common/system/tray/system_tray_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698