OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/status/status_area_view.h" | 9 #include "chrome/browser/chromeos/status/status_area_view.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 SHOW_NETWORK_OPTIONS, | 32 SHOW_NETWORK_OPTIONS, |
33 SHOW_SYSTEM_OPTIONS | 33 SHOW_SYSTEM_OPTIONS |
34 }; | 34 }; |
35 | 35 |
36 explicit StatusAreaViewChromeos(); | 36 explicit StatusAreaViewChromeos(); |
37 virtual ~StatusAreaViewChromeos(); | 37 virtual ~StatusAreaViewChromeos(); |
38 | 38 |
39 void Init(StatusAreaButton::Delegate* delegate, ScreenMode screen_mode); | 39 void Init(StatusAreaButton::Delegate* delegate, ScreenMode screen_mode); |
40 | 40 |
41 // PowerLibrary::Observer: | 41 // PowerLibrary::Observer: |
42 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; | |
43 virtual void SystemResumed() OVERRIDE; | 42 virtual void SystemResumed() OVERRIDE; |
44 | 43 |
45 // TimezoneSettings::Observer: | 44 // TimezoneSettings::Observer: |
46 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE; | 45 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE; |
47 | 46 |
48 // Sets default use 24hour clock mode. | 47 // Sets default use 24hour clock mode. |
49 void SetDefaultUse24HourClock(bool use_24hour_clock); | 48 void SetDefaultUse24HourClock(bool use_24hour_clock); |
50 | 49 |
51 // Convenience function to add buttons to a status area for ChromeOS. | 50 // Convenience function to add buttons to a status area for ChromeOS. |
52 static void AddChromeosButtons(StatusAreaView* status_area, | 51 static void AddChromeosButtons(StatusAreaView* status_area, |
53 StatusAreaButton::Delegate* delegate, | 52 StatusAreaButton::Delegate* delegate, |
54 ScreenMode screen_mode); | 53 ScreenMode screen_mode); |
55 | 54 |
56 private: | 55 private: |
57 void UpdateClockText(); | 56 void UpdateClockText(); |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos); | 58 DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace chromeos | 61 } // namespace chromeos |
63 | 62 |
64 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ |
OLD | NEW |