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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webmenurunner_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBMENUITEM_H_
6 #define WEBMENUITEM_H_
7
8 #include "base/string16.h"
9 #include "webkit/api/public/WebPopupMenuInfo.h"
10
11 // Container for information about entries in an HTML select popup menu.
12 struct WebMenuItem {
13 enum Type {
14 OPTION = WebKit::WebPopupMenuInfo::Item::Option,
15 GROUP = WebKit::WebPopupMenuInfo::Item::Group,
16 SEPARATOR = WebKit::WebPopupMenuInfo::Item::Separator
17 };
18
19 string16 label;
20 Type type;
21 bool enabled;
22
23 WebMenuItem() : type(OPTION), enabled(false) {
24 }
25
26 WebMenuItem(const WebKit::WebPopupMenuInfo::Item& item)
27 : label(item.label),
28 type(static_cast<Type>(item.type)),
29 enabled(item.enabled) {
30 }
31 };
32
33 #endif // WEBMENUITEM_H_
OLDNEW
« 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