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

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

Issue 2396863004: chromeos: Refactor system tray ShowNetworkSettingsForGuid for mash (Closed)
Patch Set: Created 4 years, 2 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 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // Fills |info| structure (which must not be null) with current update info. 144 // Fills |info| structure (which must not be null) with current update info.
145 virtual void GetSystemUpdateInfo(UpdateInfo* info) const; 145 virtual void GetSystemUpdateInfo(UpdateInfo* info) const;
146 146
147 // Returns true if settings menu item should appear. 147 // Returns true if settings menu item should appear.
148 virtual bool ShouldShowSettings(); 148 virtual bool ShouldShowSettings();
149 149
150 // Shows the dialog to set system time, date, and timezone. 150 // Shows the dialog to set system time, date, and timezone.
151 virtual void ShowSetTimeDialog(); 151 virtual void ShowSetTimeDialog();
152 152
153 // Shows the settings related to network. If |guid| is not empty,
154 // show the settings for the corresponding network.
155 virtual void ShowNetworkSettingsForGuid(const std::string& guid);
156
157 // Returns true if the notification for the display configuration change 153 // Returns true if the notification for the display configuration change
158 // should appear. 154 // should appear.
159 virtual bool ShouldShowDisplayNotification(); 155 virtual bool ShouldShowDisplayNotification();
160 156
161 // Shows information about enterprise enrolled devices. 157 // Shows information about enterprise enrolled devices.
162 virtual void ShowEnterpriseInfo(); 158 virtual void ShowEnterpriseInfo();
163 159
164 // Shows login UI to add other users to this session. 160 // Shows login UI to add other users to this session.
165 virtual void ShowUserLogin(); 161 virtual void ShowUserLogin();
166 162
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Creates a system tray item for display rotation lock. 273 // Creates a system tray item for display rotation lock.
278 // TODO(jamescook): Remove this when mus has support for display management 274 // TODO(jamescook): Remove this when mus has support for display management
279 // and we have a DisplayManager equivalent. See http://crbug.com/548429 275 // and we have a DisplayManager equivalent. See http://crbug.com/548429
280 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( 276 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem(
281 SystemTray* tray); 277 SystemTray* tray);
282 }; 278 };
283 279
284 } // namespace ash 280 } // namespace ash
285 281
286 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 282 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698