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

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

Issue 7313035: Print Preview: Associating preview requests and responses using an identifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 28 matching lines...) Expand all
39 void OnDidGetPreviewPageCount(int page_count); 39 void OnDidGetPreviewPageCount(int page_count);
40 40
41 // Notify the Web UI that the 0-based page |page_number| has been rendered. 41 // Notify the Web UI that the 0-based page |page_number| has been rendered.
42 void OnDidPreviewPage(int page_number); 42 void OnDidPreviewPage(int page_number);
43 43
44 // Notify the Web UI renderer that preview data is available. 44 // Notify the Web UI renderer that preview data is available.
45 // |expected_pages_count| specifies the total number of pages. 45 // |expected_pages_count| specifies the total number of pages.
46 // |job_title| is the title of the page being previewed. 46 // |job_title| is the title of the page being previewed.
47 // |modifiable| indicates if the preview can be rerendered with different 47 // |modifiable| indicates if the preview can be rerendered with different
48 // print settings. 48 // print settings.
49 // |preview_request_id| indicates wich request resulted in this response.
49 void OnPreviewDataIsAvailable(int expected_pages_count, 50 void OnPreviewDataIsAvailable(int expected_pages_count,
50 const string16& job_title, 51 const string16& job_title,
51 bool modifiable); 52 bool modifiable,
53 int preview_request_id);
52 54
53 // Notify the Web UI that a navigation has occurred in this tab. This is the 55 // Notify the Web UI that a navigation has occurred in this tab. This is the
54 // last chance to communicate with the source tab before the assocation is 56 // last chance to communicate with the source tab before the assocation is
55 // erased. 57 // erased.
56 void OnNavigation(); 58 void OnNavigation();
57 59
58 // Notify the Web UI that the print preview failed to render. 60 // Notify the Web UI that the print preview failed to render.
59 void OnPrintPreviewFailed(); 61 void OnPrintPreviewFailed();
60 62
61 // Notify the Web UI that the print preview request has been cancelled. 63 // Notify the Web UI that the print preview request has been cancelled.
(...skipping 25 matching lines...) Expand all
87 // Weak pointer to the WebUI handler. 89 // Weak pointer to the WebUI handler.
88 PrintPreviewHandler* handler_; 90 PrintPreviewHandler* handler_;
89 91
90 // The number of print preview requests in flight. 92 // The number of print preview requests in flight.
91 uint32 request_count_; 93 uint32 request_count_;
92 94
93 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 95 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
94 }; 96 };
95 97
96 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 98 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698