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

Unified Diff: chrome/browser/ui/webui/print_preview_ui.h

Issue 7647010: Print preview page selection should not require a rerendering of draft pages. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed comment Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview_ui.h
diff --git a/chrome/browser/ui/webui/print_preview_ui.h b/chrome/browser/ui/webui/print_preview_ui.h
index 589f4414c79c6d8ddadde87675a2ba510291dd10..a219539de2afd4bc0c4a565a3cafb8aab3410828 100644
--- a/chrome/browser/ui/webui/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview_ui.h
@@ -41,6 +41,9 @@ class PrintPreviewUI : public ChromeWebUI {
// Clear the existing print preview data.
void ClearAllPreviewData();
+ // Returns the available draft page count.
+ int GetAvailableDraftPageCount();
+
// Setters
void SetInitiatorTabURLAndTitle(const std::string& initiator_url,
const string16& initiator_tab_title);
@@ -80,6 +83,8 @@ class PrintPreviewUI : public ChromeWebUI {
void OnPreviewDataIsAvailable(int expected_pages_count,
int preview_request_id);
+ // Notifies the Web UI renderer to reuse the preview data.
+ // |preview_request_id| indicates which request resulted in this response.
void OnReusePreviewData(int preview_request_id);
// Notifies the Web UI that preview tab is destroyed. This is the last chance

Powered by Google App Engine
This is Rietveld 408576698