| OLD | NEW |
| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 virtual bool IsUserSupervised() const; | 137 virtual bool IsUserSupervised() const; |
| 138 | 138 |
| 139 // Returns true if the current user is child. | 139 // Returns true if the current user is child. |
| 140 // TODO(merkulova): remove on FakeUserManager componentization. | 140 // TODO(merkulova): remove on FakeUserManager componentization. |
| 141 // crbug.com/443119 | 141 // crbug.com/443119 |
| 142 virtual bool IsUserChild() const; | 142 virtual bool IsUserChild() const; |
| 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 the desired hour clock type. | |
| 148 virtual base::HourClockType GetHourClockType() const; | |
| 149 | |
| 150 // Shows settings. | 147 // Shows settings. |
| 151 virtual void ShowSettings(); | 148 virtual void ShowSettings(); |
| 152 | 149 |
| 153 // Returns true if settings menu item should appear. | 150 // Returns true if settings menu item should appear. |
| 154 virtual bool ShouldShowSettings(); | 151 virtual bool ShouldShowSettings(); |
| 155 | 152 |
| 156 // Shows the settings related to date, timezone etc. | |
| 157 virtual void ShowDateSettings(); | |
| 158 | |
| 159 // Shows the dialog to set system time, date, and timezone. | 153 // Shows the dialog to set system time, date, and timezone. |
| 160 virtual void ShowSetTimeDialog(); | 154 virtual void ShowSetTimeDialog(); |
| 161 | 155 |
| 162 // Shows the settings related to network. If |guid| is not empty, | 156 // Shows the settings related to network. If |guid| is not empty, |
| 163 // show the settings for the corresponding network. | 157 // show the settings for the corresponding network. |
| 164 virtual void ShowNetworkSettingsForGuid(const std::string& guid); | 158 virtual void ShowNetworkSettingsForGuid(const std::string& guid); |
| 165 | 159 |
| 166 // Shows settings related to multiple displays. | 160 // Shows settings related to multiple displays. |
| 167 virtual void ShowDisplaySettings(); | 161 virtual void ShowDisplaySettings(); |
| 168 | 162 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // Creates a system tray item for display rotation lock. | 313 // Creates a system tray item for display rotation lock. |
| 320 // TODO(jamescook): Remove this when mus has support for display management | 314 // TODO(jamescook): Remove this when mus has support for display management |
| 321 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 315 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
| 322 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 316 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
| 323 SystemTray* tray); | 317 SystemTray* tray); |
| 324 }; | 318 }; |
| 325 | 319 |
| 326 } // namespace ash | 320 } // namespace ash |
| 327 | 321 |
| 328 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 322 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |