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

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: patch for landing 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/shell/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/shell/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698