| 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_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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // IPC::Message::Sender | 119 // IPC::Message::Sender |
| 120 bool Send(IPC::Message* msg); | 120 bool Send(IPC::Message* msg); |
| 121 | 121 |
| 122 int32 routing_id(); | 122 int32 routing_id(); |
| 123 | 123 |
| 124 // WebKit::WebViewClient override: | 124 // WebKit::WebViewClient override: |
| 125 virtual void didStopLoading(); | 125 virtual void didStopLoading(); |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 static void GetPageSizeAndMarginsInPoints( |
| 129 WebKit::WebFrame* frame, |
| 130 int page_index, |
| 131 const ViewMsg_Print_Params& default_params, |
| 132 double* content_width_in_points, |
| 133 double* content_height_in_points, |
| 134 double* margin_top_in_points, |
| 135 double* margin_right_in_points, |
| 136 double* margin_bottom_in_points, |
| 137 double* margin_left_in_points); |
| 138 |
| 128 RenderView* render_view_; | 139 RenderView* render_view_; |
| 129 WebKit::WebView* print_web_view_; | 140 WebKit::WebView* print_web_view_; |
| 130 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; | 141 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; |
| 131 base::Time last_cancelled_script_print_; | 142 base::Time last_cancelled_script_print_; |
| 132 int user_cancelled_scripted_print_count_; | 143 int user_cancelled_scripted_print_count_; |
| 133 | 144 |
| 134 private: | 145 private: |
| 135 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 146 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 136 }; | 147 }; |
| 137 | 148 |
| 138 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 149 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |