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

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

Issue 7818010: Print Preview: Populating print preview tab title as soon as it is known. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unused parameters style 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_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // unused. 114 // unused.
115 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); 115 void HandleReloadCrashedInitiatorTab(const base::ListValue* args);
116 116
117 // Asks the browser to show the native printer management dialog. 117 // Asks the browser to show the native printer management dialog.
118 // |args| is unused. 118 // |args| is unused.
119 void HandleManagePrinters(const base::ListValue* args); 119 void HandleManagePrinters(const base::ListValue* args);
120 120
121 // Asks the browser to close the preview tab. |args| is unused. 121 // Asks the browser to close the preview tab. |args| is unused.
122 void HandleClosePreviewTab(const base::ListValue* args); 122 void HandleClosePreviewTab(const base::ListValue* args);
123 123
124 // Asks the browser for the title of the initiator tab.
125 // |args| is unused.
126 void HandleGetInitiatorTabTitle(const base::ListValue* args);
127
124 // Sends the printer capabilities to the Web UI. |settings_info| contains 128 // Sends the printer capabilities to the Web UI. |settings_info| contains
125 // printer capabilities information. 129 // printer capabilities information.
126 void SendPrinterCapabilities(const base::DictionaryValue& settings_info); 130 void SendPrinterCapabilities(const base::DictionaryValue& settings_info);
127 131
128 // Sends the default printer to the Web UI. 132 // Sends the default printer to the Web UI.
129 void SendDefaultPrinter(const base::StringValue& default_printer, 133 void SendDefaultPrinter(const base::StringValue& default_printer,
130 const base::StringValue& cloud_print_data); 134 const base::StringValue& cloud_print_data);
131 135
132 // Send the list of printers to the Web UI. 136 // Send the list of printers to the Web UI.
133 void SetupPrinterList(const base::ListValue& printers); 137 void SetupPrinterList(const base::ListValue& printers);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Whether we have already logged a failed print preview. 182 // Whether we have already logged a failed print preview.
179 bool reported_failed_preview_; 183 bool reported_failed_preview_;
180 184
181 // Whether we have already logged the number of printers this session. 185 // Whether we have already logged the number of printers this session.
182 bool has_logged_printers_count_; 186 bool has_logged_printers_count_;
183 187
184 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 188 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
185 }; 189 };
186 190
187 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 191 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698