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

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

Issue 7720012: Moves ownership of MenuItemView to MenuRunner as well as responbility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 9 years, 4 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/power_menu_button.h
diff --git a/chrome/browser/chromeos/status/power_menu_button.h b/chrome/browser/chromeos/status/power_menu_button.h
index f27f07e953c6cb4bab356736bd0b5844091d138e..aef5aec7740f42a21e7b2154680dfe236a835881 100644
--- a/chrome/browser/chromeos/status/power_menu_button.h
+++ b/chrome/browser/chromeos/status/power_menu_button.h
@@ -15,6 +15,10 @@ namespace base {
class TimeDelta;
}
+namespace views {
+class MenuRunner;
+}
+
class SkBitmap;
namespace chromeos {
@@ -75,8 +79,8 @@ class PowerMenuButton : public StatusAreaButton,
// The currently showing status view. NULL if menu is not being displayed.
StatusView* status_;
- // The currently showing menu. NULL if menu is not being displayed.
- views::MenuItemView* menu_;
+ // If non-null the menu is showing.
+ views::MenuRunner* menu_runner_;
DISALLOW_COPY_AND_ASSIGN(PowerMenuButton);
};

Powered by Google App Engine
This is Rietveld 408576698