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

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

Issue 7715022: Print Preview: Provide a link to try printing with the system dialog when print preview fails. Al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void OnPrintDialogShown() OVERRIDE; 48 virtual void OnPrintDialogShown() OVERRIDE;
49 49
50 // Displays a modal dialog, prompting the user to select a file. 50 // Displays a modal dialog, prompting the user to select a file.
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.
59 void OnPrintPreviewFailed();
60
58 private: 61 private:
59 friend class PrintSystemTaskProxy; 62 friend class PrintSystemTaskProxy;
60 63
61 TabContents* preview_tab(); 64 TabContents* preview_tab();
62 65
63 // Gets the default printer. |args| is unused. 66 // Gets the default printer. |args| is unused.
64 void HandleGetDefaultPrinter(const base::ListValue* args); 67 void HandleGetDefaultPrinter(const base::ListValue* args);
65 68
66 // Gets the list of printers. |args| is unused. 69 // Gets the list of printers. |args| is unused.
67 void HandleGetPrinters(const base::ListValue* args); 70 void HandleGetPrinters(const base::ListValue* args);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Whether we have already logged a failed print preview. 168 // Whether we have already logged a failed print preview.
166 bool reported_failed_preview_; 169 bool reported_failed_preview_;
167 170
168 // Whether we have already logged the number of printers this session. 171 // Whether we have already logged the number of printers this session.
169 bool has_logged_printers_count_; 172 bool has_logged_printers_count_;
170 173
171 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 174 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
172 }; 175 };
173 176
174 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 177 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698