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

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

Issue 8345025: Print Preview: Adding support for localized margin units and format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing tests Created 9 years, 2 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Asks the browser to show the cloud print dialog. 129 // Asks the browser to show the cloud print dialog.
130 void HandlePrintWithCloudPrint(); 130 void HandlePrintWithCloudPrint();
131 131
132 // Asks the browser to close the preview tab. |args| is unused. 132 // Asks the browser to close the preview tab. |args| is unused.
133 void HandleClosePreviewTab(const base::ListValue* args); 133 void HandleClosePreviewTab(const base::ListValue* args);
134 134
135 // Asks the browser for the title of the initiator tab. 135 // Asks the browser for the title of the initiator tab.
136 // |args| is unused. 136 // |args| is unused.
137 void HandleGetInitiatorTabTitle(const base::ListValue* args); 137 void HandleGetInitiatorTabTitle(const base::ListValue* args);
138 138
139 // Asks the browser for the number formatting and measurement system according
140 // to the current locale.
141 void HandleGetNumberFormatAndMeasurementSystem(const base::ListValue* args);
142
139 // Sends the printer capabilities to the Web UI. |settings_info| contains 143 // Sends the printer capabilities to the Web UI. |settings_info| contains
140 // printer capabilities information. 144 // printer capabilities information.
141 void SendPrinterCapabilities(const base::DictionaryValue& settings_info); 145 void SendPrinterCapabilities(const base::DictionaryValue& settings_info);
142 146
143 // Sends the default printer to the Web UI. 147 // Sends the default printer to the Web UI.
144 void SendDefaultPrinter(const base::StringValue& default_printer, 148 void SendDefaultPrinter(const base::StringValue& default_printer,
145 const base::StringValue& cloud_print_data); 149 const base::StringValue& cloud_print_data);
146 150
147 // Send the list of printers to the Web UI. 151 // Send the list of printers to the Web UI.
148 void SetupPrinterList(const base::ListValue& printers); 152 void SetupPrinterList(const base::ListValue& printers);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool has_logged_printers_count_; 204 bool has_logged_printers_count_;
201 205
202 // Holds the path to the print to pdf request. It is empty if no such request 206 // Holds the path to the print to pdf request. It is empty if no such request
203 // exists. 207 // exists.
204 scoped_ptr<FilePath> print_to_pdf_path_; 208 scoped_ptr<FilePath> print_to_pdf_path_;
205 209
206 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
207 }; 211 };
208 212
209 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 213 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview_utils_test.html ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698