OLD | NEW |
(Empty) | |
| 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 CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
| 6 #define CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
| 7 |
| 8 #include "chrome/renderer/printing/print_web_view_helper.h" |
| 9 |
| 10 namespace content { |
| 11 class RenderView; |
| 12 } |
| 13 |
| 14 class ChromePrintWebViewHelperDelegate |
| 15 : public printing::PrintWebViewHelper::Delegate { |
| 16 public: |
| 17 ~ChromePrintWebViewHelperDelegate() override; |
| 18 |
| 19 // If a scripted print needs to be cancelled, sends a message to do so. |
| 20 // Returns |true| if the message is successfully sent, |false| otherwise. |
| 21 bool CancelPrerender(content::RenderView* render_view, |
| 22 int routing_id) override; |
| 23 |
| 24 }; // class ChromePrintWebViewHelperDelegate |
| 25 |
| 26 #endif // CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
OLD | NEW |