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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 9705084: Block printing from blocked popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More test fixes Created 8 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
Index: chrome/renderer/print_web_view_helper.h
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 86ba8d34ffbe04963b367a79253de9fab028d68e..7d1a452073dad2e99807480962ea5741abbbb946 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -312,6 +312,10 @@ class PrintWebViewHelper
// Script Initiated Printing ------------------------------------------------
+ // Return true if script initiated printing is currently allowed.
+ bool IsScriptInitiatedPrintAllowed(
+ WebKit::WebFrame* frame);
Lei Zhang 2012/03/19 20:19:32 nit: this fits on one line.
Albert Bodenhamer 2012/03/19 23:16:17 Done.
+
// Returns true if script initiated printing occurs too often.
bool IsScriptInitiatedPrintTooFrequent(WebKit::WebFrame* frame);

Powered by Google App Engine
This is Rietveld 408576698