Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.h

Issue 81563002: Removed unused code path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Notifies the Web UI that the 0-based page |page_number| has been rendered. 97 // Notifies the Web UI that the 0-based page |page_number| has been rendered.
98 // |preview_request_id| indicates wich request resulted in this response. 98 // |preview_request_id| indicates wich request resulted in this response.
99 void OnDidPreviewPage(int page_number, int preview_request_id); 99 void OnDidPreviewPage(int page_number, int preview_request_id);
100 100
101 // Notifies the Web UI renderer that preview data is available. 101 // Notifies the Web UI renderer that preview data is available.
102 // |expected_pages_count| specifies the total number of pages. 102 // |expected_pages_count| specifies the total number of pages.
103 // |preview_request_id| indicates which request resulted in this response. 103 // |preview_request_id| indicates which request resulted in this response.
104 void OnPreviewDataIsAvailable(int expected_pages_count, 104 void OnPreviewDataIsAvailable(int expected_pages_count,
105 int preview_request_id); 105 int preview_request_id);
106 106
107 // Notifies the Web UI renderer to reuse the preview data.
108 // |preview_request_id| indicates which request resulted in this response.
109 void OnReusePreviewData(int preview_request_id);
110
111 // Notifies the Web UI that preview dialog has been destroyed. This is the 107 // Notifies the Web UI that preview dialog has been destroyed. This is the
112 // last chance to communicate with the initiator before the association is 108 // last chance to communicate with the initiator before the association is
113 // erased. 109 // erased.
114 void OnPrintPreviewDialogDestroyed(); 110 void OnPrintPreviewDialogDestroyed();
115 111
116 // Notifies the Web UI that the print preview failed to render. 112 // Notifies the Web UI that the print preview failed to render.
117 void OnPrintPreviewFailed(); 113 void OnPrintPreviewFailed();
118 114
119 // Notified the Web UI that this print preview dialog's RenderProcess has been 115 // Notified the Web UI that this print preview dialog's RenderProcess has been
120 // closed, which may occur for several reasons, e.g. tab closure or crash. 116 // closed, which may occur for several reasons, e.g. tab closure or crash.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // title. 193 // title.
198 string16 initiator_title_; 194 string16 initiator_title_;
199 195
200 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. 196 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
201 bool dialog_closed_; 197 bool dialog_closed_;
202 198
203 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 199 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
204 }; 200 };
205 201
206 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 202 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/preview_generator.js ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698