| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index 3d774af1dbb50a135557eb323885581b7faa2aab..651a44be891ebe2110e3df8fc2c1f0cd61617881 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) {
|
| @@ -2633,6 +2636,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,
|
| @@ -5619,7 +5633,7 @@ void RenderViewImpl::Close() {
|
| }
|
|
|
| void RenderViewImpl::DidHandleKeyEvent() {
|
| - edit_commands_.clear();
|
| + ClearEditCommands();
|
| }
|
|
|
| bool RenderViewImpl::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
|
|
|