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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 static void GetCurrentPrintPreviewStatus(int32 preview_ui_id, | 77 static void GetCurrentPrintPreviewStatus(int32 preview_ui_id, |
78 int request_id, | 78 int request_id, |
79 bool* cancel); | 79 bool* cancel); |
80 | 80 |
81 // Returns an id to uniquely identify this PrintPreviewUI. | 81 // Returns an id to uniquely identify this PrintPreviewUI. |
82 int32 GetIDForPrintPreviewUI() const; | 82 int32 GetIDForPrintPreviewUI() const; |
83 | 83 |
84 // Notifies the Web UI of a print preview request with |request_id|. | 84 // Notifies the Web UI of a print preview request with |request_id|. |
85 void OnPrintPreviewRequest(int request_id); | 85 void OnPrintPreviewRequest(int request_id); |
86 | 86 |
| 87 #if !defined(DISABLE_BASIC_PRINTING) |
87 // Notifies the Web UI to show the system dialog. | 88 // Notifies the Web UI to show the system dialog. |
88 void OnShowSystemDialog(); | 89 void OnShowSystemDialog(); |
| 90 #endif // !DISABLE_BASIC_PRINTING |
89 | 91 |
90 // Notifies the Web UI about the page count of the request preview. | 92 // Notifies the Web UI about the page count of the request preview. |
91 void OnDidGetPreviewPageCount( | 93 void OnDidGetPreviewPageCount( |
92 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 94 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
93 | 95 |
94 // Notifies the Web UI of the default page layout according to the currently | 96 // Notifies the Web UI of the default page layout according to the currently |
95 // selected printer and page size. | 97 // selected printer and page size. |
96 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, | 98 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, |
97 const gfx::Rect& printable_area, | 99 const gfx::Rect& printable_area, |
98 bool has_custom_page_size_style); | 100 bool has_custom_page_size_style); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // title. | 204 // title. |
203 base::string16 initiator_title_; | 205 base::string16 initiator_title_; |
204 | 206 |
205 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. | 207 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. |
206 bool dialog_closed_; | 208 bool dialog_closed_; |
207 | 209 |
208 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
209 }; | 211 }; |
210 | 212 |
211 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 213 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
OLD | NEW |