summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/render_view_impl.cc')
-rw-r--r--content/renderer/render_view_impl.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index cbd27af..c834903 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2169,6 +2169,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) {
@@ -2639,6 +2642,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,
@@ -5625,7 +5639,7 @@ void RenderViewImpl::Close() {
}
void RenderViewImpl::DidHandleKeyEvent() {
- edit_commands_.clear();
+ ClearEditCommands();
}
bool RenderViewImpl::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {