Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index 26540ed48aca1a7e6fa089d3eeb547b899cef614..8660601d89e95a75b3fd954b30c77d06e0dac373 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -2171,6 +2171,9 @@ void RenderViewImpl::showContextMenu( |
#endif |
Send(new ViewHostMsg_ContextMenu(routing_id_, params)); |
+ |
+ FOR_EACH_OBSERVER( |
+ RenderViewObserver, observers_, DidRequestShowContextMenu(frame, data)); |
} |
void RenderViewImpl::setStatusText(const WebString& text) { |
@@ -2640,6 +2643,17 @@ void RenderViewImpl::Repaint(const gfx::Size& size) { |
OnMsgRepaint(size); |
} |
+void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, |
+ const std::string& value) { |
+ EditCommands edit_commands; |
+ edit_commands.push_back(EditCommand(name, value)); |
+ OnSetEditCommandsForNextKeyEvent(edit_commands); |
+} |
+ |
+void RenderViewImpl::ClearEditCommands() { |
+ edit_commands_.clear(); |
+} |
+ |
void RenderViewImpl::loadURLExternally( |
WebFrame* frame, const WebURLRequest& request, |
WebNavigationPolicy policy, |
@@ -5626,7 +5640,7 @@ void RenderViewImpl::Close() { |
} |
void RenderViewImpl::DidHandleKeyEvent() { |
- edit_commands_.clear(); |
+ ClearEditCommands(); |
} |
bool RenderViewImpl::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |