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 #if defined(ENABLE_BASIC_PRINTING) |
88 // Notifies the Web UI to show the system dialog. | 88 // Notifies the Web UI to show the system dialog. |
89 void OnShowSystemDialog(); | 89 void OnShowSystemDialog(); |
90 #endif // !DISABLE_BASIC_PRINTING | 90 #endif // ENABLE_BASIC_PRINTING |
91 | 91 |
92 // 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. |
93 void OnDidGetPreviewPageCount( | 93 void OnDidGetPreviewPageCount( |
94 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 94 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
95 | 95 |
96 // 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 |
97 // selected printer and page size. | 97 // selected printer and page size. |
98 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, | 98 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, |
99 const gfx::Rect& printable_area, | 99 const gfx::Rect& printable_area, |
100 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... |
204 // title. | 204 // title. |
205 base::string16 initiator_title_; | 205 base::string16 initiator_title_; |
206 | 206 |
207 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. | 207 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. |
208 bool dialog_closed_; | 208 bool dialog_closed_; |
209 | 209 |
210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
211 }; | 211 }; |
212 | 212 |
213 #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 |