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

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

Issue 7740005: Print preview not showing if default print is invalid. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Notifies the Web UI that initiator tab is closed, so we can disable all the 89 // Notifies the Web UI that initiator tab is closed, so we can disable all the
90 // controls that need the initiator tab for generating the preview data. 90 // controls that need the initiator tab for generating the preview data.
91 void OnInitiatorTabClosed(); 91 void OnInitiatorTabClosed();
92 92
93 // Notifies the Web UI that the initiator tab has crashed. 93 // Notifies the Web UI that the initiator tab has crashed.
94 void OnInitiatorTabCrashed(); 94 void OnInitiatorTabCrashed();
95 95
96 // Notifies the Web UI renderer that file selection has been cancelled. 96 // Notifies the Web UI renderer that file selection has been cancelled.
97 void OnFileSelectionCancelled(); 97 void OnFileSelectionCancelled();
98 98
99 // Notifies the Web UI that no printer is installed, or the settings of
100 // default printer is invalid.
101 void OnInvalidDefaultPrinter();
102
99 private: 103 private:
100 // Returns the Singleton instance of the PrintPreviewDataService. 104 // Returns the Singleton instance of the PrintPreviewDataService.
101 PrintPreviewDataService* print_preview_data_service(); 105 PrintPreviewDataService* print_preview_data_service();
102 106
103 base::TimeTicks initial_preview_start_time_; 107 base::TimeTicks initial_preview_start_time_;
104 108
105 // Store the PrintPreviewUI address string. 109 // Store the PrintPreviewUI address string.
106 std::string preview_ui_addr_str_; 110 std::string preview_ui_addr_str_;
107 111
108 // Weak pointer to the WebUI handler. 112 // Weak pointer to the WebUI handler.
109 PrintPreviewHandler* handler_; 113 PrintPreviewHandler* handler_;
110 114
111 // Store the |initiator_url| in order to display an accurate error message 115 // Store the |initiator_url| in order to display an accurate error message
112 // when the initiator tab is closed/crashed. 116 // when the initiator tab is closed/crashed.
113 std::string initiator_url_; 117 std::string initiator_url_;
114 118
115 // Store the initiator tab title, used for populating the print preview tab 119 // Store the initiator tab title, used for populating the print preview tab
116 // title. 120 // title.
117 string16 initiator_tab_title_; 121 string16 initiator_tab_title_;
118 122
119 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 123 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
120 }; 124 };
121 125
122 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 126 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698