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

Unified Diff: chrome/renderer/print_web_view_helper.cc

Issue 6750018: Cleanup: Stop creating RenderViewObservers from chrome/ in RenderViewer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: printPage -> PrintPage Created 9 years, 9 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 | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/search_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.cc
===================================================================
--- chrome/renderer/print_web_view_helper.cc (revision 80513)
+++ chrome/renderer/print_web_view_helper.cc (working copy)
@@ -116,6 +116,7 @@
PrintWebViewHelper::PrintWebViewHelper(RenderView* render_view)
: RenderViewObserver(render_view),
+ RenderViewObserverTracker<PrintWebViewHelper>(render_view),
print_web_view_(NULL),
script_initiated_preview_frame_(NULL),
context_menu_preview_node_(NULL),
@@ -126,7 +127,8 @@
PrintWebViewHelper::~PrintWebViewHelper() {}
-void PrintWebViewHelper::ScriptInitiatedPrint(WebKit::WebFrame* frame) {
+// Prints |frame| which called window.print().
+void PrintWebViewHelper::printPage(WebKit::WebFrame* frame) {
DCHECK(frame);
if (IsScriptInitiatedPrintTooFrequent(frame))
« no previous file with comments | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/search_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698