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

Unified Diff: chrome/browser/chromeos/status/status_area_view_chromeos.h

Issue 8600001: Fixes bug where clock button wasn't updating in response to a timezone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/status_area_view_chromeos.h
diff --git a/chrome/browser/chromeos/status/status_area_view_chromeos.h b/chrome/browser/chromeos/status/status_area_view_chromeos.h
index df88d4143cb8c6adf1756dcbdcdf9071ce6772d5..5d6dda7872e13607a5f55e79f0b65acf9439051a 100644
--- a/chrome/browser/chromeos/status/status_area_view_chromeos.h
+++ b/chrome/browser/chromeos/status/status_area_view_chromeos.h
@@ -12,6 +12,8 @@
#include "chrome/browser/chromeos/system/timezone_settings.h"
#include "chrome/browser/chromeos/view_ids.h"
+class ClockMenuButton;
+
namespace chromeos {
class StatusAreaViewChromeos : public StatusAreaView,
@@ -41,9 +43,12 @@ class StatusAreaViewChromeos : public StatusAreaView,
void SetDefaultUse24HourClock(bool use_24hour_clock);
// Convenience function to add buttons to a status area for ChromeOS.
+ // |clock_button| is set to the ClockMenuButton that is created by this
+ // method.
static void AddChromeosButtons(StatusAreaView* status_area,
StatusAreaButton::Delegate* delegate,
- ScreenMode screen_mode);
+ ScreenMode screen_mode,
+ ClockMenuButton** clock_button);
stevenjb 2011/11/18 21:18:29 This seems a bit awkward to me. What do you think
sky 2011/11/18 21:23:24 I went this route because of type safety. GetViewB
stevenjb 2011/11/18 23:04:48 That's fair. Part of me wonders whether we should
private:
void UpdateClockText();

Powered by Google App Engine
This is Rietveld 408576698