| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Called when print preview failed. | 59 // Called when print preview failed. |
| 60 void OnPrintPreviewFailed(); | 60 void OnPrintPreviewFailed(); |
| 61 | 61 |
| 62 // Called when the user press ctrl+shift+p to display the native system | 62 // Called when the user press ctrl+shift+p to display the native system |
| 63 // dialog. | 63 // dialog. |
| 64 void ShowSystemDialog(); | 64 void ShowSystemDialog(); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 friend class PrintSystemTaskProxy; | 67 friend class PrintSystemTaskProxy; |
| 68 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
| 69 ActivateInitiatorTabOnPrint); |
| 68 | 70 |
| 69 TabContentsWrapper* preview_tab_wrapper() const; | 71 TabContentsWrapper* preview_tab_wrapper() const; |
| 70 TabContents* preview_tab() const; | 72 TabContents* preview_tab() const; |
| 71 | 73 |
| 72 // Gets the default printer. |args| is unused. | 74 // Gets the default printer. |args| is unused. |
| 73 void HandleGetDefaultPrinter(const base::ListValue* args); | 75 void HandleGetDefaultPrinter(const base::ListValue* args); |
| 74 | 76 |
| 75 // Gets the list of printers. |args| is unused. | 77 // Gets the list of printers. |args| is unused. |
| 76 void HandleGetPrinters(const base::ListValue* args); | 78 void HandleGetPrinters(const base::ListValue* args); |
| 77 | 79 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Whether we have already logged a failed print preview. | 180 // Whether we have already logged a failed print preview. |
| 179 bool reported_failed_preview_; | 181 bool reported_failed_preview_; |
| 180 | 182 |
| 181 // Whether we have already logged the number of printers this session. | 183 // Whether we have already logged the number of printers this session. |
| 182 bool has_logged_printers_count_; | 184 bool has_logged_printers_count_; |
| 183 | 185 |
| 184 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 186 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 185 }; | 187 }; |
| 186 | 188 |
| 187 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 189 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |