| 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" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // capabilities. | 156 // capabilities. |
| 157 void SendFailedToGetPrinterCapabilities(const std::string& printer_name); | 157 void SendFailedToGetPrinterCapabilities(const std::string& printer_name); |
| 158 | 158 |
| 159 // Send the list of printers to the Web UI. | 159 // Send the list of printers to the Web UI. |
| 160 void SetupPrinterList(const base::ListValue& printers); | 160 void SetupPrinterList(const base::ListValue& printers); |
| 161 | 161 |
| 162 // Send whether cloud print integration should be enabled. | 162 // Send whether cloud print integration should be enabled. |
| 163 void SendCloudPrintEnabled(); | 163 void SendCloudPrintEnabled(); |
| 164 | 164 |
| 165 // Send the PDF data to the cloud to print. | 165 // Send the PDF data to the cloud to print. |
| 166 void SendCloudPrintJob(const base::DictionaryValue& settings, | 166 void SendCloudPrintJob(); |
| 167 std::string print_ticket); | |
| 168 | 167 |
| 169 // Gets the initiator tab for the print preview tab. | 168 // Gets the initiator tab for the print preview tab. |
| 170 TabContents* GetInitiatorTab() const; | 169 TabContents* GetInitiatorTab() const; |
| 171 | 170 |
| 172 // Activates the initiator tab and close the preview tab. | 171 // Activates the initiator tab and close the preview tab. |
| 173 void ActivateInitiatorTabAndClosePreviewTab(); | 172 void ActivateInitiatorTabAndClosePreviewTab(); |
| 174 | 173 |
| 175 // Adds all the recorded stats taken so far to histogram counts. | 174 // Adds all the recorded stats taken so far to histogram counts. |
| 176 void ReportStats(); | 175 void ReportStats(); |
| 177 | 176 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 207 bool has_logged_printers_count_; | 206 bool has_logged_printers_count_; |
| 208 | 207 |
| 209 // Holds the path to the print to pdf request. It is empty if no such request | 208 // Holds the path to the print to pdf request. It is empty if no such request |
| 210 // exists. | 209 // exists. |
| 211 scoped_ptr<FilePath> print_to_pdf_path_; | 210 scoped_ptr<FilePath> print_to_pdf_path_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 212 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 215 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |