Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: content/renderer/render_view_impl.cc

Issue 11245004: [content shell] link against the TestRunner library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: set correct WK rev Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698