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

Unified Diff: chrome/browser/chromeos/power_menu_button.h

Issue 341044: Move chromeos code to namespace chromeos. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/power_menu_button.h
===================================================================
--- chrome/browser/chromeos/power_menu_button.h (revision 30488)
+++ chrome/browser/chromeos/power_menu_button.h (working copy)
@@ -5,20 +5,21 @@
#ifndef CHROME_BROWSER_CHROMEOS_POWER_MENU_BUTTON_H_
#define CHROME_BROWSER_CHROMEOS_POWER_MENU_BUTTON_H_
-#include "chrome/browser/chromeos/cros_power_library.h"
+#include "chrome/browser/chromeos/power_library.h"
#include "chrome/browser/chromeos/status_area_button.h"
#include "views/controls/menu/menu_2.h"
#include "views/controls/menu/view_menu_delegate.h"
-class CrosPowerLibrary;
class SkBitmap;
+namespace chromeos {
+
// The power menu button in the status area.
// This class will handle getting the power status and populating the menu.
class PowerMenuButton : public StatusAreaButton,
public views::ViewMenuDelegate,
public views::Menu2Model,
- public CrosPowerLibrary::Observer {
+ public PowerLibrary::Observer {
public:
PowerMenuButton();
virtual ~PowerMenuButton();
@@ -41,8 +42,8 @@
virtual void ActivatedAt(int index) {}
virtual void MenuWillShow() {}
- // CrosPowerLibrary::Observer implementation.
- virtual void PowerChanged(CrosPowerLibrary* obj);
+ // PowerLibrary::Observer implementation.
+ virtual void PowerChanged(PowerLibrary* obj);
private:
// views::ViewMenuDelegate implementation.
@@ -60,4 +61,6 @@
DISALLOW_COPY_AND_ASSIGN(PowerMenuButton);
};
+} // namespace chromeos
+
#endif // CHROME_BROWSER_CHROMEOS_POWER_MENU_BUTTON_H_

Powered by Google App Engine
This is Rietveld 408576698