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

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

Issue 6903083: PrintPreview:[MAC & WIN] Added code to show the native printer management dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed review comments Created 9 years, 7 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 "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void HandlePrint(const ListValue* args); 53 void HandlePrint(const ListValue* args);
54 54
55 // Get the printer capabilities. 55 // Get the printer capabilities.
56 // First element of |args| is the printer name. 56 // First element of |args| is the printer name.
57 void HandleGetPrinterCapabilities(const ListValue* args); 57 void HandleGetPrinterCapabilities(const ListValue* args);
58 58
59 // Ask the initiator renderer to show the native print system dialog. 59 // Ask the initiator renderer to show the native print system dialog.
60 // |args| is unused. 60 // |args| is unused.
61 void HandleShowSystemDialog(const ListValue* args); 61 void HandleShowSystemDialog(const ListValue* args);
62 62
63 // Ask the browser to show the native printer management dialog.
64 // |args| is unused.
65 void HandleManagePrinters(const ListValue* args);
66
63 // Send the printer capabilities to the Web UI. 67 // Send the printer capabilities to the Web UI.
64 // |settings_info| contains printer capabilities information. 68 // |settings_info| contains printer capabilities information.
65 void SendPrinterCapabilities(const DictionaryValue& settings_info); 69 void SendPrinterCapabilities(const DictionaryValue& settings_info);
66 70
67 // Send the list of printers to the Web UI. 71 // Send the list of printers to the Web UI.
68 void SendPrinterList(const ListValue& printers, 72 void SendPrinterList(const ListValue& printers,
69 const FundamentalValue& default_printer_index); 73 const FundamentalValue& default_printer_index);
70 74
71 // Helper function to get the initiator tab for the print preview tab. 75 // Helper function to get the initiator tab for the print preview tab.
72 TabContents* GetInitiatorTab(); 76 TabContents* GetInitiatorTab();
73 77
74 // Helper function to close the print preview tab. 78 // Helper function to close the print preview tab.
75 void ClosePrintPreviewTab(); 79 void ClosePrintPreviewTab();
76 80
77 // Pointer to current print system. 81 // Pointer to current print system.
78 scoped_refptr<printing::PrintBackend> print_backend_; 82 scoped_refptr<printing::PrintBackend> print_backend_;
79 83
80 // The underlying dialog object. 84 // The underlying dialog object.
81 scoped_refptr<SelectFileDialog> select_file_dialog_; 85 scoped_refptr<SelectFileDialog> select_file_dialog_;
82 86
83 static FilePath* last_saved_path_; 87 static FilePath* last_saved_path_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 89 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
86 }; 90 };
87 91
88 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 92 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/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