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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, | 47 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, |
48 int request_id, | 48 int request_id, |
49 bool* cancel); | 49 bool* cancel); |
50 | 50 |
51 // Returns a string to uniquely identify this PrintPreviewUI. | 51 // Returns a string to uniquely identify this PrintPreviewUI. |
52 std::string GetPrintPreviewUIAddress() const; | 52 std::string GetPrintPreviewUIAddress() const; |
53 | 53 |
54 // Notifies the Web UI of a print preview request with |request_id|. | 54 // Notifies the Web UI of a print preview request with |request_id|. |
55 void OnPrintPreviewRequest(int request_id); | 55 void OnPrintPreviewRequest(int request_id); |
56 | 56 |
| 57 // Notifies the Web UI to show the system dialog. |
| 58 void OnShowSystemDialog(); |
| 59 |
57 // Notifies the Web UI about the page count of the request preview. | 60 // Notifies the Web UI about the page count of the request preview. |
58 void OnDidGetPreviewPageCount( | 61 void OnDidGetPreviewPageCount( |
59 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 62 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
60 | 63 |
61 // Notifies the Web UI that the 0-based page |page_number| has been rendered. | 64 // Notifies the Web UI that the 0-based page |page_number| has been rendered. |
62 // |preview_request_id| indicates wich request resulted in this response. | 65 // |preview_request_id| indicates wich request resulted in this response. |
63 void OnDidPreviewPage(int page_number, int preview_request_id); | 66 void OnDidPreviewPage(int page_number, int preview_request_id); |
64 | 67 |
65 // Notifies the Web UI renderer that preview data is available. | 68 // Notifies the Web UI renderer that preview data is available. |
66 // |expected_pages_count| specifies the total number of pages. | 69 // |expected_pages_count| specifies the total number of pages. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 std::string initiator_url_; | 107 std::string initiator_url_; |
105 | 108 |
106 // Store the initiator tab title, used for populating the print preview tab | 109 // Store the initiator tab title, used for populating the print preview tab |
107 // title. | 110 // title. |
108 string16 initiator_tab_title_; | 111 string16 initiator_tab_title_; |
109 | 112 |
110 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 113 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
111 }; | 114 }; |
112 | 115 |
113 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 116 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
OLD | NEW |