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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual ~StatusAreaViewChromeos(); | 46 virtual ~StatusAreaViewChromeos(); |
47 | 47 |
48 void Init(StatusAreaButton::Delegate* delegate); | 48 void Init(StatusAreaButton::Delegate* delegate); |
49 | 49 |
50 // PowerManagerClient::Observer: | 50 // PowerManagerClient::Observer: |
51 virtual void SystemResumed() OVERRIDE; | 51 virtual void SystemResumed() OVERRIDE; |
52 | 52 |
53 // TimezoneSettings::Observer: | 53 // TimezoneSettings::Observer: |
54 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE; | 54 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE; |
55 | 55 |
56 // Sets default use 24hour clock mode. | |
57 void SetDefaultUse24HourClock(bool use_24hour_clock); | |
58 | |
59 // Convenience function to add buttons to a status area for ChromeOS. | 56 // Convenience function to add buttons to a status area for ChromeOS. |
60 // |clock_button| (if non-NULL) is set to the ClockMenuButton that is created | 57 // |clock_button| (if non-NULL) is set to the ClockMenuButton that is created |
61 // by this method. | 58 // by this method. |
62 static void AddChromeosButtons(StatusAreaView* status_area, | 59 static void AddChromeosButtons(StatusAreaView* status_area, |
63 StatusAreaButton::Delegate* delegate, | 60 StatusAreaButton::Delegate* delegate, |
64 ClockMenuButton** clock_button); | 61 ClockMenuButton** clock_button); |
65 | 62 |
66 private: | 63 private: |
67 // Current screen mode of the status area. | 64 // Current screen mode of the status area. |
68 static ScreenMode screen_mode_; | 65 static ScreenMode screen_mode_; |
69 | 66 |
70 void UpdateClockText(); | 67 void UpdateClockText(); |
71 | 68 |
72 DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos); | 69 DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos); |
73 }; | 70 }; |
74 | 71 |
75 } // namespace chromeos | 72 } // namespace chromeos |
76 | 73 |
77 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ | 74 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ |
OLD | NEW |