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

Side by Side Diff: chrome/browser/chromeos/status/clock_menu_button.h

Issue 8347016: chromeos: Simplify power supply info in PowerLibrary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Various comment fixes Created 9 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/net/network_change_notifier_chromeos.cc ('k') | chrome/browser/chromeos/status/power_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698