Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host.h |
| =================================================================== |
| --- content/browser/renderer_host/render_widget_host.h (revision 101881) |
| +++ content/browser/renderer_host/render_widget_host.h (working copy) |
| @@ -51,6 +51,9 @@ |
| class TransportDIB; |
| class WebCursor; |
| struct ViewHostMsg_UpdateRect_Params; |
| +struct WebPreferences; |
| +struct EditCommand; |
| +class GURL; |
| // This class manages the browser side of a browser<->renderer HWND connection. |
| // The HWND lives in the browser process, and windows events are sent over |
| @@ -399,6 +402,66 @@ |
| // Instructs the RenderView to send back updates to the preferred size. |
| void EnablePreferredSizeMode(int flags); |
| + // Set the RenderView background. |
| + void SetBackground(const SkBitmap& background); |
| + |
| + // Notifies the renderer that the next key event is bound to one or more |
| + // pre-defined edit commands |
| + void SetEditCommandsForNextKeyEvent( |
| + const std::vector<EditCommand>& commands); |
| + |
| + // Relay a request from assistive technology to perform the default action |
| + // on a given node. |
| + void AccessibilityDoDefaultAction(int object_id); |
| + |
| + // Relay a request from assistive technology to set focus to a given node. |
| + void AccessibilitySetFocus(int object_id); |
| + |
| + // Executes the edit command on the RenderView. |
| + void ExecuteEditCommand(const std::string& command, |
| + const std::string& value); |
| + |
| + // Tells the renderer to scroll the currently focused node into rect only if |
| + // the currently focused node is a Text node (textfield, text area or content |
| + // editable divs). |
| + void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
| + |
| + // Requests the renderer to select the region between two points. |
| + void SelectRange(const gfx::Point& start, const gfx::Point& end); |
| + |
| + // Edit operations. |
| + void Undo(); |
| + void Redo(); |
| + void Cut(); |
| + void Copy(); |
| + void CopyToFindPboard(); |
| + void Paste(); |
| + void Delete(); |
| + void SelectAll(); |
| + |
| + // Set the zoom level for the current main frame |
| + void SetZoomLevel(double level); |
|
jam
2011/09/21 00:10:53
looks like this can be on RVH?
|
| + |
| + #if defined(OS_MACOSX) |
| + // Tell the renderer that plugin IME has completed. |
| + void NotifyPluginImeCompletion(int plugin_id, const string16& status); |
|
jam
2011/09/21 00:10:53
sorry, I just realized that these methods were add
|
| + |
| + // Activate/deactivate the RenderView (i.e., set its controls' tint |
| + // accordingly, etc.). |
| + void SetActive(bool active); |
| + |
| + // Let the RenderView know its window has changed visibility. |
| + void SetWindowVisibility(bool visible); |
| + |
| + // Let the RenderView know its window's frame has changed. |
| + void NotifyWindowFrameChanged(const gfx::Rect& window_frame, |
| + const gfx::Rect& content_view_frame); |
| + |
| + // Sent to the renderer when the user starts or stops resizing the view. |
| + void NotifyInLiveResize(bool resize); |
| + |
| +#endif // OS_MACOSX |
| + |
| protected: |
| // Internal implementation of the public Forward*Event() methods. |
| void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |