OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, | 99 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, |
100 BlockScriptInitiatedPrinting); | 100 BlockScriptInitiatedPrinting); |
101 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, OnPrintPages); | 101 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, OnPrintPages); |
102 | 102 |
103 #if defined(OS_WIN) || defined(OS_MACOSX) | 103 #if defined(OS_WIN) || defined(OS_MACOSX) |
104 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, PrintLayoutTest); | 104 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, PrintLayoutTest); |
105 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, PrintWithIframe); | 105 FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest, PrintWithIframe); |
106 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 106 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
107 | 107 |
108 // RenderViewObserver implementation. | 108 // RenderViewObserver implementation. |
109 virtual bool OnMessageReceived(const IPC::Message& message); | 109 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
110 virtual void PrintPage(WebKit::WebFrame* frame); | 110 virtual void PrintPage(WebKit::WebFrame* frame) OVERRIDE; |
111 | 111 |
112 // Message handlers --------------------------------------------------------- | 112 // Message handlers --------------------------------------------------------- |
113 | 113 |
114 // Print the document. | 114 // Print the document. |
115 void OnPrintPages(); | 115 void OnPrintPages(); |
116 | 116 |
117 // Print the document with the print preview frame/node. | 117 // Print the document with the print preview frame/node. |
118 void OnPrintForSystemDialog(); | 118 void OnPrintForSystemDialog(); |
119 | 119 |
120 // Initiate print preview. | 120 // Initiate print preview. |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 State state_; | 424 State state_; |
425 }; | 425 }; |
426 | 426 |
427 PrintPreviewContext print_preview_context_; | 427 PrintPreviewContext print_preview_context_; |
428 | 428 |
429 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 429 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
430 }; | 430 }; |
431 | 431 |
432 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 432 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |