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

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: Update per code review 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Notifies the Web UI that initiator tab is closed, so we can disable all the 92 // Notifies the Web UI that initiator tab is closed, so we can disable all the
93 // controls that need the initiator tab for generating the preview data. 93 // controls that need the initiator tab for generating the preview data.
94 void OnInitiatorTabClosed(); 94 void OnInitiatorTabClosed();
95 95
96 // Notifies the Web UI that the initiator tab has crashed. 96 // Notifies the Web UI that the initiator tab has crashed.
97 void OnInitiatorTabCrashed(); 97 void OnInitiatorTabCrashed();
98 98
99 // Notifies the Web UI renderer that file selection has been cancelled. 99 // Notifies the Web UI renderer that file selection has been cancelled.
100 void OnFileSelectionCancelled(); 100 void OnFileSelectionCancelled();
101 101
102 // Notifies the Web UI that the printer is unavailable or its settings are
103 // invalid.
104 void OnInvalidPrinterSettings(bool show_alert_dialog);
105
102 // Notifies the Web UI to cancel the pending preview request. 106 // Notifies the Web UI to cancel the pending preview request.
103 void OnCancelPendingPreviewRequest(); 107 void OnCancelPendingPreviewRequest();
104 108
105 private: 109 private:
106 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, 110 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest,
107 TitleAfterReload); 111 TitleAfterReload);
108 112
109 // Returns the Singleton instance of the PrintPreviewDataService. 113 // Returns the Singleton instance of the PrintPreviewDataService.
110 PrintPreviewDataService* print_preview_data_service(); 114 PrintPreviewDataService* print_preview_data_service();
111 115
(...skipping 10 matching lines...) Expand all
122 std::string initiator_url_; 126 std::string initiator_url_;
123 127
124 // Store the initiator tab title, used for populating the print preview tab 128 // Store the initiator tab title, used for populating the print preview tab
125 // title. 129 // title.
126 string16 initiator_tab_title_; 130 string16 initiator_tab_title_;
127 131
128 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 132 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
129 }; 133 };
130 134
131 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 135 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698