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

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

Issue 7721001: PrintPreview: Make ctrl-shift-p start the native print flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + merge conflicts fix Created 9 years, 4 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void SelectFile(const FilePath& default_path); 51 void SelectFile(const FilePath& default_path);
52 52
53 // Called when the print preview tab is destroyed. This is the last time 53 // Called when the print preview tab is destroyed. This is the last time
54 // this object has access to the PrintViewManager in order to disconnect the 54 // this object has access to the PrintViewManager in order to disconnect the
55 // observer. 55 // observer.
56 void OnTabDestroyed(); 56 void OnTabDestroyed();
57 57
58 // Called when print preview failed. 58 // Called when print preview failed.
59 void OnPrintPreviewFailed(); 59 void OnPrintPreviewFailed();
60 60
61 // Called when the user press ctrl+shift+p to display the native system
62 // dialog.
63 void ShowSystemDialog();
64
61 private: 65 private:
62 friend class PrintSystemTaskProxy; 66 friend class PrintSystemTaskProxy;
63 67
64 TabContents* preview_tab(); 68 TabContents* preview_tab();
65 69
66 // Gets the default printer. |args| is unused. 70 // Gets the default printer. |args| is unused.
67 void HandleGetDefaultPrinter(const base::ListValue* args); 71 void HandleGetDefaultPrinter(const base::ListValue* args);
68 72
69 // Gets the list of printers. |args| is unused. 73 // Gets the list of printers. |args| is unused.
70 void HandleGetPrinters(const base::ListValue* args); 74 void HandleGetPrinters(const base::ListValue* args);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Whether we have already logged a failed print preview. 176 // Whether we have already logged a failed print preview.
173 bool reported_failed_preview_; 177 bool reported_failed_preview_;
174 178
175 // Whether we have already logged the number of printers this session. 179 // Whether we have already logged the number of printers this session.
176 bool has_logged_printers_count_; 180 bool has_logged_printers_count_;
177 181
178 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 182 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
179 }; 183 };
180 184
181 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 185 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698