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

Unified Diff: webkit/glue/webmenuitem.h

Issue 155378: Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webmenurunner_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webmenuitem.h
===================================================================
--- webkit/glue/webmenuitem.h (revision 0)
+++ webkit/glue/webmenuitem.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBMENUITEM_H_
+#define WEBMENUITEM_H_
+
+#include "base/string16.h"
+#include "webkit/api/public/WebPopupMenuInfo.h"
+
+// Container for information about entries in an HTML select popup menu.
+struct WebMenuItem {
+ enum Type {
+ OPTION = WebKit::WebPopupMenuInfo::Item::Option,
+ GROUP = WebKit::WebPopupMenuInfo::Item::Group,
+ SEPARATOR = WebKit::WebPopupMenuInfo::Item::Separator
+ };
+
+ string16 label;
+ Type type;
+ bool enabled;
+
+ WebMenuItem() : type(OPTION), enabled(false) {
+ }
+
+ WebMenuItem(const WebKit::WebPopupMenuInfo::Item& item)
+ : label(item.label),
+ type(static_cast<Type>(item.type)),
+ enabled(item.enabled) {
+ }
+};
+
+#endif // WEBMENUITEM_H_
Property changes on: webkit/glue/webmenuitem.h
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webmenurunner_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698