• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_RENDERER_EXTENSIONS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
6 #define CEF_LIBCEF_RENDERER_EXTENSIONS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
7 
8 #include "components/printing/renderer/print_render_frame_helper.h"
9 
10 namespace extensions {
11 
12 class CefPrintRenderFrameHelperDelegate
13     : public printing::PrintRenderFrameHelper::Delegate {
14  public:
15   explicit CefPrintRenderFrameHelperDelegate(bool is_windowless);
16   ~CefPrintRenderFrameHelperDelegate() override;
17 
18   blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override;
19   bool IsPrintPreviewEnabled() override;
20   bool OverridePrint(blink::WebLocalFrame* frame) override;
21 
22  private:
23   bool is_windowless_;
24 };
25 
26 }  // namespace extensions
27 
28 #endif  // CEF_LIBCEF_RENDERER_EXTENSIONS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
29