| Index: content/browser/renderer_host/render_widget_host.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host.cc (revision 101855)
|
| +++ content/browser/renderer_host/render_widget_host.cc (working copy)
|
| @@ -28,6 +28,7 @@
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h"
|
| #include "ui/base/keycodes/keyboard_codes.h"
|
| #include "webkit/glue/webcursor.h"
|
| +#include "webkit/glue/webpreferences.h"
|
| #include "webkit/plugins/npapi/webplugin.h"
|
|
|
| using base::Time;
|
| @@ -1285,3 +1286,108 @@
|
| Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags));
|
| }
|
|
|
| +void RenderWidgetHost::SetBackground(const SkBitmap& background) {
|
| + Send(new ViewMsg_SetBackground(routing_id(), background));
|
| +}
|
| +
|
| +void RenderWidgetHost::SetEditCommandsForNextKeyEvent(
|
| + const std::vector<EditCommand>& commands) {
|
| + Send(new ViewMsg_SetEditCommandsForNextKeyEvent(routing_id(), commands));
|
| +}
|
| +
|
| +void RenderWidgetHost::AccessibilityDoDefaultAction(int object_id) {
|
| + Send(new ViewMsg_AccessibilityDoDefaultAction(routing_id(), object_id));
|
| +}
|
| +
|
| +void RenderWidgetHost::AccessibilitySetFocus(int object_id) {
|
| + Send(new ViewMsg_SetAccessibilityFocus(routing_id(), object_id));
|
| +}
|
| +
|
| +void RenderWidgetHost::ExecuteEditCommand(const std::string& command,
|
| + const std::string& value) {
|
| + Send(new ViewMsg_ExecuteEditCommand(routing_id(), command, value));
|
| +}
|
| +
|
| +void RenderWidgetHost::ScrollFocusedEditableNodeIntoRect(
|
| + const gfx::Rect& rect) {
|
| + Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(routing_id(), rect));
|
| +}
|
| +
|
| +void RenderWidgetHost::SelectRange(const gfx::Point& start,
|
| + const gfx::Point& end) {
|
| + Send(new ViewMsg_SelectRange(routing_id(), start, end));
|
| +}
|
| +
|
| +void RenderWidgetHost::Undo() {
|
| + Send(new ViewMsg_Undo(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("Undo"));
|
| +}
|
| +
|
| +void RenderWidgetHost::Redo() {
|
| + Send(new ViewMsg_Redo(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("Redo"));
|
| +}
|
| +
|
| +void RenderWidgetHost::Cut() {
|
| + Send(new ViewMsg_Cut(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("Cut"));
|
| +}
|
| +
|
| +void RenderWidgetHost::Copy() {
|
| + Send(new ViewMsg_Copy(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("Copy"));
|
| +}
|
| +
|
| +void RenderWidgetHost::CopyToFindPboard() {
|
| +#if defined(OS_MACOSX)
|
| + // Windows/Linux don't have the concept of a find pasteboard.
|
| + Send(new ViewMsg_CopyToFindPboard(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("CopyToFindPboard"));
|
| +#endif
|
| +}
|
| +
|
| +void RenderWidgetHost::Paste() {
|
| + Send(new ViewMsg_Paste(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("Paste"));
|
| +}
|
| +
|
| +void RenderWidgetHost::Delete() {
|
| + Send(new ViewMsg_Delete(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("DeleteSelection"));
|
| +}
|
| +
|
| +void RenderWidgetHost::SelectAll() {
|
| + Send(new ViewMsg_SelectAll(routing_id()));
|
| + UserMetrics::RecordAction(UserMetricsAction("SelectAll"));
|
| +}
|
| +
|
| +void RenderWidgetHost::SetZoomLevel(double level) {
|
| + Send(new ViewMsg_SetZoomLevel(routing_id(), level));
|
| +}
|
| +
|
| +#if defined(OS_MACOSX)
|
| +void RenderWidgetHost::NotifyPluginImeCompletion(int plugin_id,
|
| + const string16& status) {
|
| + Send(new ViewMsg_PluginImeCompositionCompleted(routing_id(), status,
|
| + plugin_id));
|
| +}
|
| +
|
| +void RenderWidgetHost::SetActive(bool active) {
|
| + Send(new ViewMsg_SetActive(routing_id(), active));
|
| +}
|
| +
|
| +void RenderWidgetHost::SetWindowVisibility(bool visible) {
|
| + Send(new ViewMsg_SetWindowVisibility(routing_id(), visible));
|
| +}
|
| +
|
| +void RenderWidgetHost::NotifyWindowFrameChanged(
|
| + const gfx::Rect& window_frame, const gfx::Rect& content_view_frame) {
|
| + Send(new ViewMsg_WindowFrameChanged(routing_id(), window_frame,
|
| + content_view_frame));
|
| +}
|
| +
|
| +void RenderWidgetHost::NotifyInLiveResize(bool resize) {
|
| + Send(new ViewMsg_SetInLiveResize(routing_id(), resize));
|
| +}
|
| +
|
| +#endif // (OS_MACOSX)
|
|
|