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_CLOCK_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 public: | 39 public: |
40 explicit ClockMenuButton(StatusAreaHost* host); | 40 explicit ClockMenuButton(StatusAreaHost* host); |
41 virtual ~ClockMenuButton(); | 41 virtual ~ClockMenuButton(); |
42 | 42 |
43 // views::MenuDelegate implementation | 43 // views::MenuDelegate implementation |
44 virtual string16 GetLabel(int id) const OVERRIDE; | 44 virtual string16 GetLabel(int id) const OVERRIDE; |
45 virtual bool IsCommandEnabled(int id) const OVERRIDE; | 45 virtual bool IsCommandEnabled(int id) const OVERRIDE; |
46 virtual void ExecuteCommand(int id) OVERRIDE; | 46 virtual void ExecuteCommand(int id) OVERRIDE; |
47 | 47 |
48 // Overridden from ResumeLibrary::Observer: | 48 // Overridden from ResumeLibrary::Observer: |
49 virtual void PowerChanged(PowerLibrary* obj) {} | 49 virtual void PowerChanged(const PowerSupplyStatus& status) {} |
50 virtual void SystemResumed(); | 50 virtual void SystemResumed(); |
51 | 51 |
52 // Overridden from TimezoneSettings::Observer: | 52 // Overridden from TimezoneSettings::Observer: |
53 virtual void TimezoneChanged(const icu::TimeZone& timezone); | 53 virtual void TimezoneChanged(const icu::TimeZone& timezone); |
54 | 54 |
55 // views::View | 55 // views::View |
56 virtual void OnLocaleChanged() OVERRIDE; | 56 virtual void OnLocaleChanged() OVERRIDE; |
57 | 57 |
58 // Updates the time on the menu button. Can be called by host if timezone | 58 // Updates the time on the menu button. Can be called by host if timezone |
59 // changes. | 59 // changes. |
(...skipping 30 matching lines...) Expand all Loading... |
90 // Default value for use_24hour_clock. Used when StatusAreaHost does not | 90 // Default value for use_24hour_clock. Used when StatusAreaHost does not |
91 // have a profile, i.e. on login screen and lock screen. | 91 // have a profile, i.e. on login screen and lock screen. |
92 bool default_use_24hour_clock_; | 92 bool default_use_24hour_clock_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); | 94 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace chromeos | 97 } // namespace chromeos |
98 | 98 |
99 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
OLD | NEW |