| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_ |
| 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_ | 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Prints all the pages listed in |params|. | 59 // Prints all the pages listed in |params|. |
| 60 // It will implicitly revert the document to display CSS media type. | 60 // It will implicitly revert the document to display CSS media type. |
| 61 void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame); | 61 void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame); |
| 62 | 62 |
| 63 // IPC::Message::Sender | 63 // IPC::Message::Sender |
| 64 bool Send(IPC::Message* msg); | 64 bool Send(IPC::Message* msg); |
| 65 | 65 |
| 66 int32 routing_id(); | 66 int32 routing_id(); |
| 67 | 67 |
| 68 // WebViewDeletegate | 68 // WebViewDeletegate |
| 69 virtual void didInvalidateRect(const WebKit::WebRect&) {} |
| 70 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect) {} |
| 71 virtual void didFocus() {} |
| 72 virtual void didBlur() {} |
| 73 virtual void didChangeCursor(const WebKit::WebCursorInfo&) {} |
| 74 virtual void closeWidgetSoon() {} |
| 75 virtual void show(WebKit::WebNavigationPolicy) {} |
| 76 virtual void runModal() {} |
| 77 virtual WebKit::WebRect windowRect(); |
| 78 virtual void setWindowRect(const WebKit::WebRect&) {} |
| 79 virtual WebKit::WebRect windowResizerRect(); |
| 80 virtual WebKit::WebRect rootWindowRect(); |
| 81 virtual WebKit::WebScreenInfo screenInfo(); |
| 69 virtual void DidStopLoading(WebView* webview); | 82 virtual void DidStopLoading(WebView* webview); |
| 70 virtual void DidInvalidateRect(WebWidget* webwidget, | |
| 71 const WebKit::WebRect& rect) {} | |
| 72 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | |
| 73 const WebKit::WebRect& clip_rect) {} | |
| 74 virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition) {} | |
| 75 virtual void CloseWidgetSoon(WebWidget* webwidget) {} | |
| 76 virtual void Focus(WebWidget* webwidget) {} | |
| 77 virtual void Blur(WebWidget* webwidget) {} | |
| 78 virtual void SetCursor(WebWidget* webwidget, | |
| 79 const WebKit::WebCursorInfo& cursor) {} | |
| 80 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); | |
| 81 virtual void SetWindowRect(WebWidget* webwidget, | |
| 82 const WebKit::WebRect& rect) {} | |
| 83 virtual void GetRootWindowRect(WebWidget* webwidget, WebKit::WebRect* rect) {} | |
| 84 virtual void GetRootWindowResizerRect(WebWidget* webwidget, | |
| 85 WebKit::WebRect* rect) {} | |
| 86 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move) {} | |
| 87 virtual void RunModal(WebWidget* webwidget) {} | |
| 88 virtual void AddRef() {} | |
| 89 virtual void Release() {} | |
| 90 virtual bool IsHidden(WebWidget* webwidget); | |
| 91 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget); | |
| 92 | 83 |
| 93 private: | 84 private: |
| 94 RenderView* render_view_; | 85 RenderView* render_view_; |
| 95 scoped_ptr<WebView> print_web_view_; | 86 scoped_ptr<WebView> print_web_view_; |
| 96 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; | 87 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; |
| 97 base::Time last_cancelled_script_print_; | 88 base::Time last_cancelled_script_print_; |
| 98 int user_cancelled_scripted_print_count_; | 89 int user_cancelled_scripted_print_count_; |
| 99 | 90 |
| 100 private: | 91 private: |
| 101 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 92 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 102 }; | 93 }; |
| 103 | 94 |
| 104 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_ | 95 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_ |
| OLD | NEW |