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

Unified Diff: ui/base/models/simple_menu_model.cc

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, 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
« ui/base/models/menu_model.h ('K') | « ui/base/models/simple_menu_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.cc
diff --git a/ui/base/models/simple_menu_model.cc b/ui/base/models/simple_menu_model.cc
index 6152766b3c5b548a8d9c6239bc29778aaca281f3..466ccf798ee89e4b71bc92cc7ec81328826549a6 100644
--- a/ui/base/models/simple_menu_model.cc
+++ b/ui/base/models/simple_menu_model.cc
@@ -245,7 +245,7 @@ int SimpleMenuModel::GetGroupIdAt(int index) const {
return items_.at(FlipIndex(index)).group_id;
}
-bool SimpleMenuModel::GetIconAt(int index, SkBitmap* icon) const {
+bool SimpleMenuModel::GetIconAt(int index, SkBitmap* icon) {
if (IsItemDynamicAt(index))
return delegate_->GetIconForCommandId(GetCommandIdAt(index), icon);
@@ -304,6 +304,9 @@ void SimpleMenuModel::OnMenuClosed() {
delegate_->MenuClosed();
}
+void SimpleMenuModel::SetDelegate(ui::MenuModel::Delegate* delegate) {
+}
sky 2011/02/22 18:28:28 SimpleMenuModel should maintain the delegate as a
dill 2011/02/25 15:16:43 BackForwardMenuModel extends ui::MenuModel, not ui
sky 2011/02/25 15:48:57 I don't realize that. Have the implementation in b
+
int SimpleMenuModel::FlipIndex(int index) const {
return index;
}
« ui/base/models/menu_model.h ('K') | « ui/base/models/simple_menu_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698