| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // Callback ID to be used to notify UI that privet search is finished. | 425 // Callback ID to be used to notify UI that privet search is finished. |
| 426 std::string privet_search_callback_id_; | 426 std::string privet_search_callback_id_; |
| 427 | 427 |
| 428 // Callback ID to be used to notify UI that privet printing is finished. | 428 // Callback ID to be used to notify UI that privet printing is finished. |
| 429 std::string privet_print_callback_id_; | 429 std::string privet_print_callback_id_; |
| 430 #endif | 430 #endif |
| 431 | 431 |
| 432 // Callback ID to be used to notify UI that PDF file selection has finished. | 432 // Callback ID to be used to notify UI that PDF file selection has finished. |
| 433 std::string pdf_callback_id_; | 433 std::string pdf_callback_id_; |
| 434 | 434 |
| 435 bool printing_started_ = false; | 435 // Print settings to use in the local print request to send when |
| 436 // HandleHidePreview() is called. |
| 437 std::unique_ptr<base::DictionaryValue> settings_; |
| 436 | 438 |
| 437 // Proxy for calls to the print backend. Lazily initialized since web_ui() is | 439 // Proxy for calls to the print backend. Lazily initialized since web_ui() is |
| 438 // not available at construction time. | 440 // not available at construction time. |
| 439 std::unique_ptr<printing::PrinterBackendProxy> printer_backend_proxy_; | 441 std::unique_ptr<printing::PrinterBackendProxy> printer_backend_proxy_; |
| 440 | 442 |
| 441 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 443 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 442 | 444 |
| 443 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 445 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 444 }; | 446 }; |
| 445 | 447 |
| 446 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 448 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |