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

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

Issue 78173002: Pass PWG raster conversion settings from Preview to Converter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 13 matching lines...) Expand all
24 24
25 namespace base { 25 namespace base {
26 class DictionaryValue; 26 class DictionaryValue;
27 class RefCountedBytes; 27 class RefCountedBytes;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 class WebContents; 31 class WebContents;
32 } 32 }
33 33
34 namespace gfx {
35 class Size;
36 }
37
34 namespace printing { 38 namespace printing {
35 struct PageSizeMargins; 39 struct PageSizeMargins;
36 class PrintBackend; 40 class PrintBackend;
37 } 41 }
38 42
39 // The handler for Javascript messages related to the print preview dialog. 43 // The handler for Javascript messages related to the print preview dialog.
40 class PrintPreviewHandler 44 class PrintPreviewHandler
41 : public content::WebUIMessageHandler, 45 : public content::WebUIMessageHandler,
42 #if defined(ENABLE_MDNS) 46 #if defined(ENABLE_MDNS)
43 public local_discovery::PrivetLocalPrinterLister::Delegate, 47 public local_discovery::PrivetLocalPrinterLister::Delegate,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 245
242 void ConvertColorSettingToCUPSColorModel( 246 void ConvertColorSettingToCUPSColorModel(
243 base::DictionaryValue* settings) const; 247 base::DictionaryValue* settings) const;
244 #endif 248 #endif
245 249
246 #if defined(ENABLE_MDNS) 250 #if defined(ENABLE_MDNS)
247 void StopPrivetPrinterSearch(); 251 void StopPrivetPrinterSearch();
248 void PrivetCapabilitiesUpdateClient( 252 void PrivetCapabilitiesUpdateClient(
249 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); 253 scoped_ptr<local_discovery::PrivetHTTPClient> http_client);
250 void PrivetLocalPrintUpdateClient( 254 void PrivetLocalPrintUpdateClient(
251 std::string printTicket, 255 std::string print_ticket,
256 gfx::Size page_size,
252 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); 257 scoped_ptr<local_discovery::PrivetHTTPClient> http_client);
253 bool PrivetUpdateClient( 258 bool PrivetUpdateClient(
254 scoped_ptr<local_discovery::PrivetHTTPClient> http_client); 259 scoped_ptr<local_discovery::PrivetHTTPClient> http_client);
255 void StartPrivetLocalPrint(const std::string& print_ticket); 260 void StartPrivetLocalPrint(const std::string& print_ticket,
261 const gfx::Size& page_size);
256 void SendPrivetCapabilitiesError(const std::string& id); 262 void SendPrivetCapabilitiesError(const std::string& id);
257 void PrintToPrivetPrinter(const std::string& printer_name, 263 void PrintToPrivetPrinter(const std::string& printer_name,
258 const std::string& print_ticket); 264 const std::string& print_ticket,
265 const gfx::Size& page_size);
259 bool CreatePrivetHTTP( 266 bool CreatePrivetHTTP(
260 const std::string& name, 267 const std::string& name,
261 const local_discovery::PrivetHTTPAsynchronousFactory::ResultCallback& 268 const local_discovery::PrivetHTTPAsynchronousFactory::ResultCallback&
262 callback); 269 callback);
263 void FillPrinterDescription( 270 void FillPrinterDescription(
264 const std::string& name, 271 const std::string& name,
265 const local_discovery::DeviceDescription& description, 272 const local_discovery::DeviceDescription& description,
266 base::DictionaryValue* printer_value); 273 base::DictionaryValue* printer_value);
267 #endif 274 #endif
268 275
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 scoped_ptr<local_discovery::PrivetLocalPrintOperation> 319 scoped_ptr<local_discovery::PrivetLocalPrintOperation>
313 privet_local_print_operation_; 320 privet_local_print_operation_;
314 #endif 321 #endif
315 322
316 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 323 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
317 324
318 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 325 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
319 }; 326 };
320 327
321 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 328 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/native_layer.js ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698