| Index: chrome/renderer/render_widget.h
|
| ===================================================================
|
| --- chrome/renderer/render_widget.h (revision 20609)
|
| +++ chrome/renderer/render_widget.h (working copy)
|
| @@ -23,8 +23,13 @@
|
| #include "webkit/glue/webcursor.h"
|
|
|
| class RenderThreadBase;
|
| +struct ViewHostMsg_ShowPopup_Params;
|
| struct WebPluginGeometry;
|
|
|
| +namespace WebKit {
|
| +struct WebPopupMenuInfo;
|
| +}
|
| +
|
| // RenderWidget provides a communication bridge between a WebWidget and
|
| // a RenderWidgetHost, the latter of which lives in a different process.
|
| class RenderWidget : public IPC::Channel::Listener,
|
| @@ -39,6 +44,10 @@
|
| RenderThreadBase* render_thread,
|
| bool activatable);
|
|
|
| + // Called after Create to configure a RenderWidget to be rendered by the host
|
| + // as a popup menu with the given data.
|
| + void ConfigureAsExternalPopupMenu(const WebKit::WebPopupMenuInfo& info);
|
| +
|
| // The routing ID assigned by the RenderProcess. Will be MSG_ROUTING_NONE if
|
| // not yet assigned a view ID, in which case, the process MUST NOT send
|
| // messages with this ID to the parent.
|
| @@ -63,11 +72,6 @@
|
| virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy,
|
| const WebKit::WebRect& clip_rect);
|
| virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition);
|
| - virtual void ShowAsPopupWithItems(WebWidget* webwidget,
|
| - const WebKit::WebRect& bounds,
|
| - int item_height,
|
| - int selected_index,
|
| - const std::vector<WebMenuItem>& items);
|
| virtual void CloseWidgetSoon(WebWidget* webwidget);
|
| virtual void Focus(WebWidget* webwidget);
|
| virtual void Blur(WebWidget* webwidget);
|
| @@ -207,6 +211,7 @@
|
| // We store the current cursor object so we can avoid spamming SetCursor
|
| // messages.
|
| WebCursor current_cursor_;
|
| +
|
| // The size of the RenderWidget.
|
| gfx::Size size_;
|
|
|
| @@ -289,6 +294,8 @@
|
| int pending_window_rect_count_;
|
| WebKit::WebRect pending_window_rect_;
|
|
|
| + scoped_ptr<ViewHostMsg_ShowPopup_Params> popup_params_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(RenderWidget);
|
| };
|
|
|
|
|