| 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_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/printing/print_view_manager_observer.h" | 15 #include "chrome/browser/printing/print_view_manager_observer.h" |
| 16 #include "chrome/browser/ui/select_file_dialog.h" | 16 #include "chrome/browser/ui/select_file_dialog.h" |
| 17 #include "content/public/browser/web_ui_message_handler.h" | 17 #include "content/public/browser/web_ui_message_handler.h" |
| 18 #include "printing/print_job_constants.h" | 18 #include "printing/print_job_constants.h" |
| 19 | 19 |
| 20 class FilePath; | 20 class FilePath; |
| 21 class PrintSystemTaskProxy; | 21 class PrintSystemTaskProxy; |
| 22 class TabContents; | 22 class TabContents; |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class DictionaryValue; | 25 class DictionaryValue; |
| 26 class RefCountedBytes; | 26 class RefCountedBytes; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { |
| 30 class WebContents; |
| 31 } |
| 32 |
| 29 namespace printing { | 33 namespace printing { |
| 30 struct PageSizeMargins; | 34 struct PageSizeMargins; |
| 31 class PrintBackend; | 35 class PrintBackend; |
| 32 class StickySettings; | 36 class StickySettings; |
| 33 } | 37 } |
| 34 | 38 |
| 35 // The handler for Javascript messages related to the print preview dialog. | 39 // The handler for Javascript messages related to the print preview dialog. |
| 36 class PrintPreviewHandler : public content::WebUIMessageHandler, | 40 class PrintPreviewHandler : public content::WebUIMessageHandler, |
| 37 public base::SupportsWeakPtr<PrintPreviewHandler>, | 41 public base::SupportsWeakPtr<PrintPreviewHandler>, |
| 38 public SelectFileDialog::Listener, | 42 public SelectFileDialog::Listener, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 bool has_logged_printers_count_; | 210 bool has_logged_printers_count_; |
| 207 | 211 |
| 208 // Holds the path to the print to pdf request. It is empty if no such request | 212 // Holds the path to the print to pdf request. It is empty if no such request |
| 209 // exists. | 213 // exists. |
| 210 scoped_ptr<FilePath> print_to_pdf_path_; | 214 scoped_ptr<FilePath> print_to_pdf_path_; |
| 211 | 215 |
| 212 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 216 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 213 }; | 217 }; |
| 214 | 218 |
| 215 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 219 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |