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

Unified Diff: webkit/glue/webmenuitem.cc

Issue 10411002: Implement the Chromium-specific part of WebCore context menus with submenus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded change Created 8 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webmenuitem.cc
diff --git a/webkit/glue/webmenuitem.cc b/webkit/glue/webmenuitem.cc
index c634314d40a3acfce4c74a53e53fa7263eab9416..54537326bceb488b9972868928eedf0db819abd5 100644
--- a/webkit/glue/webmenuitem.cc
+++ b/webkit/glue/webmenuitem.cc
@@ -22,6 +22,8 @@ WebMenuItem::WebMenuItem(const WebKit::WebMenuItemInfo& item)
has_directional_override(item.hasTextDirectionOverride),
enabled(item.enabled),
checked(item.checked) {
+ for (size_t i = 0; i < item.subMenuItems.size(); ++i)
+ submenu.push_back(WebMenuItem(item.subMenuItems[i]));
}
WebMenuItem::WebMenuItem(const WebMenuItem& item)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698