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

Unified Diff: android_webview/renderer/print_web_view_helper.h

Issue 54963005: Upstream printing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 7 years, 1 month 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: android_webview/renderer/print_web_view_helper.h
diff --git a/chrome/renderer/printing/print_web_view_helper.h b/android_webview/renderer/print_web_view_helper.h
similarity index 98%
copy from chrome/renderer/printing/print_web_view_helper.h
copy to android_webview/renderer/print_web_view_helper.h
index b603d9ab1a154bf868d40b41ff7a4bdf6bb2c2bd..f42025f9de3132aad9d9247830b7702f3089e0a3 100644
--- a/chrome/renderer/printing/print_web_view_helper.h
+++ b/android_webview/renderer/print_web_view_helper.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_
-#define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_
+#ifndef AW_RENDERER_PRINT_WEB_VIEW_HELPER_H_
+#define AW_RENDERER_PRINT_WEB_VIEW_HELPER_H_
#include <vector>
@@ -116,6 +116,7 @@ class PrintWebViewHelper
virtual void DidStartLoading() OVERRIDE;
virtual void DidStopLoading() OVERRIDE;
+
// Message handlers ---------------------------------------------------------
// Print the document.
@@ -188,9 +189,12 @@ class PrintWebViewHelper
void OnPrintingDone(bool success);
+public:
+ // TODO(sgurun) android_webview disables scripted prints by default.
// Enable/Disable window.print calls. If |blocked| is true window.print
// calls will silently fail. Call with |blocked| set to false to reenable.
void SetScriptedPrintBlocked(bool blocked);
+private:
// Main printing code -------------------------------------------------------
@@ -486,4 +490,4 @@ class PrintWebViewHelper
} // namespace printing
-#endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_
+#endif // AW_RENDERER_PRINT_WEB_VIEW_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698