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

Unified Diff: ui/base/models/menu_model.h

Issue 2928005: Retrieve favicons from history as NavigationEntries are converted from TabNav... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Updated to compile against trunk. Created 9 years, 9 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/base/models/menu_model.h
diff --git a/ui/base/models/menu_model.h b/ui/base/models/menu_model.h
index d838a56297e69ec2efdd90edd1e7123d851cff5a..9734162f32ba82e58416a033ff3dd6c99d8a3196 100644
--- a/ui/base/models/menu_model.h
+++ b/ui/base/models/menu_model.h
@@ -8,6 +8,7 @@
#include "base/scoped_ptr.h"
#include "base/string16.h"
+#include "ui/base/models/menu_model_delegate.h"
#include "ui/gfx/native_widget_types.h"
class SkBitmap;
@@ -85,7 +86,7 @@ class MenuModel {
// Gets the icon for the item at the specified index, returning true if there
// is an icon, false otherwise.
- virtual bool GetIconAt(int index, SkBitmap* icon) const = 0;
+ virtual bool GetIconAt(int index, SkBitmap* icon) = 0;
// Returns the model for a menu item with a line of buttons at |index|.
virtual ButtonMenuItemModel* GetButtonMenuItemAt(int index) const = 0;
@@ -116,6 +117,9 @@ class MenuModel {
// Called when the menu has been closed.
virtual void MenuClosed() {}
+ // Set the MenuModelDelegate. Owned by the caller of this function.
+ virtual void SetMenuModelDelegate(MenuModelDelegate* delegate) = 0;
+
// Retrieves the model and index that contains a specific command id. Returns
// true if an item with the specified command id is found. |model| is inout,
// and specifies the model to start searching from.

Powered by Google App Engine
This is Rietveld 408576698