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 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
362 | 362 |
363 // Used for scripted initiated printing blocking. | 363 // Used for scripted initiated printing blocking. |
364 base::Time last_cancelled_script_print_; | 364 base::Time last_cancelled_script_print_; |
365 int user_cancelled_scripted_print_count_; | 365 int user_cancelled_scripted_print_count_; |
366 bool is_scripted_printing_blocked_; | 366 bool is_scripted_printing_blocked_; |
367 | 367 |
368 // Let the browser process know of a printing failure. Only set to false when | 368 // Let the browser process know of a printing failure. Only set to false when |
369 // the failure came from the browser in the first place. | 369 // the failure came from the browser in the first place. |
370 bool notify_browser_of_print_failure_; | 370 bool notify_browser_of_print_failure_; |
371 | 371 |
372 // True, when priniting from print preview. | |
Lei Zhang
2012/04/13 21:49:40
nit: Typo.
gene
2012/04/13 22:11:02
Done.
| |
373 bool printing_from_preview_; | |
374 | |
372 scoped_ptr<PrintMsg_PrintPages_Params> old_print_pages_params_; | 375 scoped_ptr<PrintMsg_PrintPages_Params> old_print_pages_params_; |
373 | 376 |
374 // Strings generated by the browser process to be printed as headers and | 377 // Strings generated by the browser process to be printed as headers and |
375 // footers if requested by the user. | 378 // footers if requested by the user. |
376 scoped_ptr<base::DictionaryValue> header_footer_info_; | 379 scoped_ptr<base::DictionaryValue> header_footer_info_; |
377 | 380 |
378 // Keeps track of the state of print preview between messages. | 381 // Keeps track of the state of print preview between messages. |
379 class PrintPreviewContext { | 382 class PrintPreviewContext { |
380 public: | 383 public: |
381 PrintPreviewContext(); | 384 PrintPreviewContext(); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
472 enum PrintPreviewErrorBuckets error_; | 475 enum PrintPreviewErrorBuckets error_; |
473 | 476 |
474 State state_; | 477 State state_; |
475 }; | 478 }; |
476 | 479 |
477 PrintPreviewContext print_preview_context_; | 480 PrintPreviewContext print_preview_context_; |
478 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 481 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
479 }; | 482 }; |
480 | 483 |
481 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 484 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |