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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, | 51 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, |
52 int request_id, | 52 int request_id, |
53 bool* cancel); | 53 bool* cancel); |
54 | 54 |
55 // Returns a string to uniquely identify this PrintPreviewUI. | 55 // Returns a string to uniquely identify this PrintPreviewUI. |
56 std::string GetPrintPreviewUIAddress() const; | 56 std::string GetPrintPreviewUIAddress() const; |
57 | 57 |
58 // Notifies the Web UI of a print preview request with |request_id|. | 58 // Notifies the Web UI of a print preview request with |request_id|. |
59 void OnPrintPreviewRequest(int request_id); | 59 void OnPrintPreviewRequest(int request_id); |
60 | 60 |
| 61 // Notifies the Web UI to show the system dialog. |
| 62 void OnShowSystemDialog(); |
| 63 |
61 // Notifies the Web UI about the page count of the request preview. | 64 // Notifies the Web UI about the page count of the request preview. |
62 void OnDidGetPreviewPageCount( | 65 void OnDidGetPreviewPageCount( |
63 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 66 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
64 | 67 |
65 // Notifies the Web UI of the default page layout according to the currently | 68 // Notifies the Web UI of the default page layout according to the currently |
66 // selected printer and page size. | 69 // selected printer and page size. |
67 void OnDidGetDefaultPageLayout( | 70 void OnDidGetDefaultPageLayout( |
68 const printing::PageSizeMargins& page_layout); | 71 const printing::PageSizeMargins& page_layout); |
69 | 72 |
70 // Notifies the Web UI that the 0-based page |page_number| has been rendered. | 73 // Notifies the Web UI that the 0-based page |page_number| has been rendered. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 std::string initiator_url_; | 122 std::string initiator_url_; |
120 | 123 |
121 // Store the initiator tab title, used for populating the print preview tab | 124 // Store the initiator tab title, used for populating the print preview tab |
122 // title. | 125 // title. |
123 string16 initiator_tab_title_; | 126 string16 initiator_tab_title_; |
124 | 127 |
125 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 128 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
126 }; | 129 }; |
127 | 130 |
128 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 131 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
OLD | NEW |