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

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: Merge with latest trunk (again) Created 9 years, 3 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Notifies the Web UI that initiator tab is closed, so we can disable all the 97 // Notifies the Web UI that initiator tab is closed, so we can disable all the
98 // controls that need the initiator tab for generating the preview data. 98 // controls that need the initiator tab for generating the preview data.
99 void OnInitiatorTabClosed(); 99 void OnInitiatorTabClosed();
100 100
101 // Notifies the Web UI that the initiator tab has crashed. 101 // Notifies the Web UI that the initiator tab has crashed.
102 void OnInitiatorTabCrashed(); 102 void OnInitiatorTabCrashed();
103 103
104 // Notifies the Web UI renderer that file selection has been cancelled. 104 // Notifies the Web UI renderer that file selection has been cancelled.
105 void OnFileSelectionCancelled(); 105 void OnFileSelectionCancelled();
106 106
107 // Notifies the Web UI that the printer is unavailable or its settings are
108 // invalid.
109 void OnInvalidPrinterSettings();
110
107 // Notifies the Web UI to cancel the pending preview request. 111 // Notifies the Web UI to cancel the pending preview request.
108 void OnCancelPendingPreviewRequest(); 112 void OnCancelPendingPreviewRequest();
109 113
110 private: 114 private:
111 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, 115 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest,
112 TitleAfterReload); 116 TitleAfterReload);
113 117
114 // Returns the Singleton instance of the PrintPreviewDataService. 118 // Returns the Singleton instance of the PrintPreviewDataService.
115 PrintPreviewDataService* print_preview_data_service(); 119 PrintPreviewDataService* print_preview_data_service();
116 120
(...skipping 10 matching lines...) Expand all
127 std::string initiator_url_; 131 std::string initiator_url_;
128 132
129 // Store the initiator tab title, used for populating the print preview tab 133 // Store the initiator tab title, used for populating the print preview tab
130 // title. 134 // title.
131 string16 initiator_tab_title_; 135 string16 initiator_tab_title_;
132 136
133 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 137 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
134 }; 138 };
135 139
136 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 140 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698