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

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

Issue 10056001: chromeos: Remove old status-area related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/clock_menu_button.h
diff --git a/chrome/browser/chromeos/status/clock_menu_button.h b/chrome/browser/chromeos/status/clock_menu_button.h
deleted file mode 100644
index 3561bbb53bf3695c1fdc22ca981539ab8ffbcc88..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/status/clock_menu_button.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_
-#define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/timer.h"
-#include "chrome/browser/chromeos/status/status_area_button.h"
-#include "chrome/browser/prefs/pref_change_registrar.h"
-#include "chrome/browser/prefs/pref_member.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_types.h"
-#include "ui/views/controls/button/menu_button.h"
-#include "ui/views/controls/button/menu_button_listener.h"
-#include "ui/views/controls/menu/menu_delegate.h"
-#include "unicode/calendar.h"
-
-namespace views {
-class MenuRunner;
-}
-
-// The clock menu button in the status area.
-// This button shows the current time.
-class ClockMenuButton : public StatusAreaButton,
- public views::MenuDelegate,
- public views::MenuButtonListener,
- public content::NotificationObserver {
- public:
- explicit ClockMenuButton(StatusAreaButton::Delegate* delegate);
- virtual ~ClockMenuButton();
-
- // content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- // views::MenuDelegate implementation
- virtual string16 GetLabel(int id) const OVERRIDE;
- virtual bool IsCommandEnabled(int id) const OVERRIDE;
- virtual void ExecuteCommand(int id) OVERRIDE;
-
- // Initialize PrefChangeRegistrar with the current default profile.
- void UpdateProfile();
-
- // Updates the time on the menu button.
- void UpdateText();
-
- protected:
- // StatusAreaButton implementation
- virtual void SetMenuActive(bool active) OVERRIDE;
- virtual int horizontal_padding() OVERRIDE;
-
- // views::View implementation
- virtual void OnLocaleChanged() OVERRIDE;
-
- // views::MenuButtonListener implementation.
- virtual void OnMenuButtonClicked(views::View* source,
- const gfx::Point& point) OVERRIDE;
-
- private:
- // Sets default use 24hour clock mode.
- void SetUse24HourClock(bool use_24hour_clock);
-
- // Create menu and return menu runner.
- views::MenuRunner* CreateMenu();
-
- // Updates text and schedules the timer to fire at the next minute interval.
- void UpdateTextAndSetNextTimer();
-
- base::OneShotTimer<ClockMenuButton> timer_;
- PrefService* pref_service_;
- scoped_ptr<PrefChangeRegistrar> registrar_;
-
- // Cached value for use_24hour_clock.
- bool use_24hour_clock_;
-
- DISALLOW_COPY_AND_ASSIGN(ClockMenuButton);
-};
-
-#endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_
« no previous file with comments | « chrome/browser/chromeos/status/caps_lock_menu_button.cc ('k') | chrome/browser/chromeos/status/clock_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698