| 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(OS_WIN) | |
| 88 // Notifies the Web UI to show the system dialog. | 87 // Notifies the Web UI to show the system dialog. |
| 89 void OnShowSystemDialog(); | 88 void OnShowSystemDialog(); |
| 90 #endif // !OS_WIN | |
| 91 | 89 |
| 92 // Notifies the Web UI about the page count of the request preview. | 90 // Notifies the Web UI about the page count of the request preview. |
| 93 void OnDidGetPreviewPageCount( | 91 void OnDidGetPreviewPageCount( |
| 94 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 92 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
| 95 | 93 |
| 96 // Notifies the Web UI of the default page layout according to the currently | 94 // Notifies the Web UI of the default page layout according to the currently |
| 97 // selected printer and page size. | 95 // selected printer and page size. |
| 98 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, | 96 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, |
| 99 const gfx::Rect& printable_area, | 97 const gfx::Rect& printable_area, |
| 100 bool has_custom_page_size_style); | 98 bool has_custom_page_size_style); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // title. | 202 // title. |
| 205 base::string16 initiator_title_; | 203 base::string16 initiator_title_; |
| 206 | 204 |
| 207 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. | 205 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. |
| 208 bool dialog_closed_; | 206 bool dialog_closed_; |
| 209 | 207 |
| 210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 208 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
| 211 }; | 209 }; |
| 212 | 210 |
| 213 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 211 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| OLD | NEW |