Chromium Code Reviews| 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 print request. |
|
Lei Zhang
2017/06/27 21:58:48
Mention this is for a local print request?
rbpotter
2017/06/28 00:18:58
Done.
| |
| 436 std::unique_ptr<base::DictionaryValue> settings_; | |
| 436 | 437 |
| 437 // Proxy for calls to the print backend. Lazily initialized since web_ui() is | 438 // Proxy for calls to the print backend. Lazily initialized since web_ui() is |
| 438 // not available at construction time. | 439 // not available at construction time. |
| 439 std::unique_ptr<printing::PrinterBackendProxy> printer_backend_proxy_; | 440 std::unique_ptr<printing::PrinterBackendProxy> printer_backend_proxy_; |
| 440 | 441 |
| 441 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 442 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 442 | 443 |
| 443 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 444 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 444 }; | 445 }; |
| 445 | 446 |
| 446 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 447 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |