diff options
Diffstat (limited to 'webkit/glue/webwidget_delegate.h')
-rw-r--r-- | webkit/glue/webwidget_delegate.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/webkit/glue/webwidget_delegate.h b/webkit/glue/webwidget_delegate.h index 17704b0d..a891cb1 100644 --- a/webkit/glue/webwidget_delegate.h +++ b/webkit/glue/webwidget_delegate.h @@ -19,22 +19,6 @@ struct WebScreenInfo; class WebWidget; struct WebPluginGeometry; -struct WebMenuItem { - // Container for information about entries in an HTML select popup menu. - // Types must be kept in sync with PopupListBox::ListItemType in - // WebCore/platform/chromium/PopupMenuChromium.h. This won't change often - // (if ever). - enum Type { - OPTION = 0, - GROUP, - SEPARATOR - }; - - string16 label; - Type type; - bool enabled; -}; - class WebWidgetDelegate { public: // Called when a region of the WebWidget needs to be re-painted. @@ -54,21 +38,6 @@ class WebWidgetDelegate { virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition) = 0; - // Used for displaying HTML popup menus on Mac OS X (other platforms will use - // Show() above). |bounds| represents the positioning on the screen (in WebKit - // coordinates, origin at the top left corner) of the button that will display - // the menu. It will be used, along with |item_height| (which refers to the - // size of each entry in the menu), to position the menu on the screen. - // |selected_index| indicates the menu item that should be drawn as selected - // when the menu initially is displayed. |items| contains information about - // each of the entries in the popup menu, such as the type (separator, option, - // group), the text representation and the item's enabled status. - virtual void ShowAsPopupWithItems(WebWidget* webwidget, - const WebKit::WebRect& bounds, - int item_height, - int selected_index, - const std::vector<WebMenuItem>& items) = 0; - // This method is called to instruct the window containing the WebWidget to // close. Note: This method should just be the trigger that causes the // WebWidget to eventually close. It should not actually be destroyed until |