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

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

Issue 10824402: Convert ui::MenuModel to use gfx::Image instead of ImageSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another day, another rebase Created 8 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
« no previous file with comments | « ui/base/models/menu_model.h ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.h
diff --git a/ui/base/models/simple_menu_model.h b/ui/base/models/simple_menu_model.h
index 126d44bc4b6d84f25ef4fe0b487e933477ea2c86..c62fb22ffa1509d9108f81eee878bfc3e9f89d4d 100644
--- a/ui/base/models/simple_menu_model.h
+++ b/ui/base/models/simple_menu_model.h
@@ -12,7 +12,7 @@
#include "ui/base/models/menu_model.h"
namespace gfx {
-class ImageSkia;
+class Image;
}
namespace ui {
@@ -44,7 +44,7 @@ class UI_EXPORT SimpleMenuModel : public MenuModel {
// Gets the icon for the item with the specified id, returning true if there
// is an icon, false otherwise.
virtual bool GetIconForCommandId(int command_id,
- gfx::ImageSkia* icon) const;
+ gfx::Image* icon) const;
// Notifies the delegate that the item with the specified command id was
// visually highlighted within the menu.
@@ -102,7 +102,7 @@ class UI_EXPORT SimpleMenuModel : public MenuModel {
int index, int command_id, int string_id, MenuModel* model);
// Sets the icon for the item at |index|.
- void SetIcon(int index, const gfx::ImageSkia& icon);
+ void SetIcon(int index, const gfx::Image& icon);
// Clears all items. Note that it does not free MenuModel of submenu.
void Clear();
@@ -122,7 +122,7 @@ class UI_EXPORT SimpleMenuModel : public MenuModel {
ui::Accelerator* accelerator) const OVERRIDE;
virtual bool IsItemCheckedAt(int index) const OVERRIDE;
virtual int GetGroupIdAt(int index) const OVERRIDE;
- virtual bool GetIconAt(int index, gfx::ImageSkia* icon) OVERRIDE;
+ virtual bool GetIconAt(int index, gfx::Image* icon) OVERRIDE;
virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(
int index) const OVERRIDE;
virtual bool IsEnabledAt(int index) const OVERRIDE;
« no previous file with comments | « ui/base/models/menu_model.h ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698