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

Unified Diff: Source/platform/ContextMenuItem.cpp

Issue 802233004: Implement icon attribute for menuitem (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 12 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: Source/platform/ContextMenuItem.cpp
diff --git a/Source/platform/ContextMenuItem.cpp b/Source/platform/ContextMenuItem.cpp
index 2aa6c2238194a4c96b56d846de2d966bfecc5afb..8d3a1b1046ecd590e68d192cc2f188571d552505 100644
--- a/Source/platform/ContextMenuItem.cpp
+++ b/Source/platform/ContextMenuItem.cpp
@@ -30,10 +30,11 @@
namespace blink {
-ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu)
+ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, const String& icon, ContextMenu* subMenu)
: m_type(type)
, m_action(action)
, m_title(title)
+ , m_icon(icon)
, m_enabled(true)
, m_checked(false)
{
@@ -41,10 +42,11 @@ ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction act
setSubMenu(subMenu);
}
-ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, bool enabled, bool checked)
+ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, const String& icon, bool enabled, bool checked)
: m_type(type)
, m_action(action)
, m_title(title)
+ , m_icon(icon)
, m_enabled(enabled)
, m_checked(checked)
{

Powered by Google App Engine
This is Rietveld 408576698