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

Side by Side Diff: android_webview/renderer/aw_print_web_view_helper_delegate.h

Issue 822133003: Refactor webview to use //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
6 #define CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
7 7
8 #include "components/printing/renderer/print_web_view_helper.h" 8 #include "components/printing/renderer/print_web_view_helper.h"
9 9
10 class ChromePrintWebViewHelperDelegate 10 namespace android_webview {
11
12 class AwPrintWebViewHelperDelegate
11 : public printing::PrintWebViewHelper::Delegate { 13 : public printing::PrintWebViewHelper::Delegate {
12 public: 14 public:
13 ~ChromePrintWebViewHelperDelegate() override; 15 ~AwPrintWebViewHelperDelegate() override;
14
15 bool CancelPrerender(content::RenderView* render_view, 16 bool CancelPrerender(content::RenderView* render_view,
16 int routing_id) override; 17 int routing_id) override;
18 blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override;
19 bool IsOutOfProcessPdfEnabled() override;
20 bool IsPrintPreviewEnabled() override;
21 bool IsAskPrintSettingsEnabled() override;
22 bool IsScriptedPrintEnabled() override;
23 }; // class AwPrintWebViewHelperDelegate
17 24
18 blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override; 25 } // namespace android_webview
19 26
20 bool IsOutOfProcessPdfEnabled() override; 27 #endif // ANDROID_WEBVIEW_RENDERER_AW_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
21
22 bool IsPrintPreviewEnabled() override;
23
24 }; // class ChromePrintWebViewHelperDelegate
25
26 #endif // CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698