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

Unified Diff: ui/views/controls/menu/menu_item_view.cc

Issue 148143004: Add notification mechanism when BrowserActionButton's icon has been updated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: ui/views/controls/menu/menu_item_view.cc
diff --git a/ui/views/controls/menu/menu_item_view.cc b/ui/views/controls/menu/menu_item_view.cc
index 15e7db39e64f632c32e0b4c4dd29f646515b5a0f..a86edd8b6b245964441ae8c6dacfe72398c439c1 100644
--- a/ui/views/controls/menu/menu_item_view.cc
+++ b/ui/views/controls/menu/menu_item_view.cc
@@ -88,6 +88,8 @@ int MenuItemView::pref_menu_height_;
// static
const char MenuItemView::kViewClassName[] = "MenuItemView";
+// Note: This class also has a protected constructor and a common Init function
+// to initialize both.
MenuItemView::MenuItemView(MenuDelegate* delegate)
: delegate_(delegate),
controller_(NULL),
@@ -559,6 +561,8 @@ const MenuConfig& MenuItemView::GetMenuConfig() const {
return MenuConfig::instance(NULL);
}
+// Note: This class also has a public constructor and a common Init function
sky 2014/02/19 15:01:19 These comments aren't helpful, nuke them.
+// to initialize both.
MenuItemView::MenuItemView(MenuItemView* parent,
int command,
MenuItemView::Type type)

Powered by Google App Engine
This is Rietveld 408576698