| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 6 #define COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 6 #define COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 enum PrintPreviewRequestType { | 165 enum PrintPreviewRequestType { |
| 166 PRINT_PREVIEW_USER_INITIATED_ENTIRE_FRAME, | 166 PRINT_PREVIEW_USER_INITIATED_ENTIRE_FRAME, |
| 167 PRINT_PREVIEW_USER_INITIATED_SELECTION, | 167 PRINT_PREVIEW_USER_INITIATED_SELECTION, |
| 168 PRINT_PREVIEW_USER_INITIATED_CONTEXT_NODE, | 168 PRINT_PREVIEW_USER_INITIATED_CONTEXT_NODE, |
| 169 PRINT_PREVIEW_SCRIPTED // triggered by window.print(). | 169 PRINT_PREVIEW_SCRIPTED // triggered by window.print(). |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 // RenderFrameObserver implementation. | 172 // RenderFrameObserver implementation. |
| 173 void OnDestruct() override; | 173 void OnDestruct() override; |
| 174 void DidStartProvisionalLoad() override; | 174 void DidStartProvisionalLoad(blink::WebDataSource* data_source) override; |
| 175 void DidFailProvisionalLoad(const blink::WebURLError& error) override; | 175 void DidFailProvisionalLoad(const blink::WebURLError& error) override; |
| 176 void DidFinishLoad() override; | 176 void DidFinishLoad() override; |
| 177 void ScriptedPrint(bool user_initiated) override; | 177 void ScriptedPrint(bool user_initiated) override; |
| 178 bool OnMessageReceived(const IPC::Message& message) override; | 178 bool OnMessageReceived(const IPC::Message& message) override; |
| 179 | 179 |
| 180 // Message handlers --------------------------------------------------------- | 180 // Message handlers --------------------------------------------------------- |
| 181 #if BUILDFLAG(ENABLE_BASIC_PRINTING) | 181 #if BUILDFLAG(ENABLE_BASIC_PRINTING) |
| 182 void OnPrintPages(); | 182 void OnPrintPages(); |
| 183 void OnPrintForSystemDialog(); | 183 void OnPrintForSystemDialog(); |
| 184 void OnPrintForPrintPreview(const base::DictionaryValue& job_settings); | 184 void OnPrintForPrintPreview(const base::DictionaryValue& job_settings); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 base::Closure on_stop_loading_closure_; | 539 base::Closure on_stop_loading_closure_; |
| 540 | 540 |
| 541 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; | 541 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; |
| 542 | 542 |
| 543 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 543 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 544 }; | 544 }; |
| 545 | 545 |
| 546 } // namespace printing | 546 } // namespace printing |
| 547 | 547 |
| 548 #endif // COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 548 #endif // COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |