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 "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 WebKit::WebFrame* script_initiated_preview_frame_; | 234 WebKit::WebFrame* script_initiated_preview_frame_; |
235 | 235 |
236 // The node under the context menu to print preview. | 236 // The node under the context menu to print preview. |
237 scoped_ptr<WebKit::WebNode> context_menu_preview_node_; | 237 scoped_ptr<WebKit::WebNode> context_menu_preview_node_; |
238 | 238 |
239 scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_; | 239 scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_; |
240 base::Time last_cancelled_script_print_; | 240 base::Time last_cancelled_script_print_; |
241 int user_cancelled_scripted_print_count_; | 241 int user_cancelled_scripted_print_count_; |
242 bool is_preview_; | 242 bool is_preview_; |
243 | 243 |
244 // For preview printing, |job_title_| is initiator tab title. Print view | |
245 // manager will use this value to set the print job name. | |
246 // For normal printing, |job_title_| is empty. Print view manager will use | |
247 // the current tab title as print job name. | |
stuartmorgan
2011/03/30 22:59:17
Again, too much detail for a header.
| |
248 string16 job_title_; | |
249 | |
244 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 250 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
245 }; | 251 }; |
246 | 252 |
247 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 253 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |