| 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 void EnsureExtensionPrinterHandlerSet(); | 308 void EnsureExtensionPrinterHandlerSet(); |
| 309 | 309 |
| 310 // Called when a list of printers is reported by an extension. | 310 // Called when a list of printers is reported by an extension. |
| 311 // |printers|: The list of printers managed by the extension. | 311 // |printers|: The list of printers managed by the extension. |
| 312 // |done|: Whether all the extensions have reported the list of printers | 312 // |done|: Whether all the extensions have reported the list of printers |
| 313 // they manage. | 313 // they manage. |
| 314 void OnGotPrintersForExtension(const base::ListValue& printers, bool done); | 314 void OnGotPrintersForExtension(const base::ListValue& printers, bool done); |
| 315 | 315 |
| 316 // Called when an extension reports information for a USB printer it has just | 316 // Called when an extension reports information for a USB printer it has just |
| 317 // been granted access to. | 317 // been granted access to. |
| 318 // |extension_id|: The extension that was queried. | 318 // |provisional_destination_id|: ID used to identify the provisional print |
| 319 // |device_id|: The id of the USB device. | 319 // destination for the USB printer in print preview UI. |
| 320 // |printer_info|: The data reported by the extension. | 320 // |printer_info|: The data reported by the extension. |
| 321 void OnGotExtensionUsbPrinterInfo(const std::string& extension_id, | 321 void OnGotExtensionUsbPrinterInfo( |
| 322 int device_id, | 322 const std::string& provisional_destination_id, |
| 323 const base::DictionaryValue& printer_info); | 323 const base::DictionaryValue& printer_info); |
| 324 | 324 |
| 325 // Called when an extension reports the set of print capabilites for a | 325 // Called when an extension reports the set of print capabilites for a |
| 326 // printer. | 326 // printer. |
| 327 // |printer_id|: The id of the printer whose capabilities are reported. | 327 // |printer_id|: The id of the printer whose capabilities are reported. |
| 328 // |capabilities|: The printer capabilities. | 328 // |capabilities|: The printer capabilities. |
| 329 void OnGotExtensionPrinterCapabilities( | 329 void OnGotExtensionPrinterCapabilities( |
| 330 const std::string& printer_id, | 330 const std::string& printer_id, |
| 331 const base::DictionaryValue& capabilities); | 331 const base::DictionaryValue& capabilities); |
| 332 | 332 |
| 333 // Called when an extension print job is completed. | 333 // Called when an extension print job is completed. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 // Notifies tests that want to know if the PDF has been saved. This doesn't | 391 // Notifies tests that want to know if the PDF has been saved. This doesn't |
| 392 // notify the test if it was a successful save, only that it was attempted. | 392 // notify the test if it was a successful save, only that it was attempted. |
| 393 base::Closure pdf_file_saved_closure_; | 393 base::Closure pdf_file_saved_closure_; |
| 394 | 394 |
| 395 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 395 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 396 | 396 |
| 397 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 397 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 398 }; | 398 }; |
| 399 | 399 |
| 400 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 400 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |