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

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: update string message 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Whether we have already logged a failed print preview. 172 // Whether we have already logged a failed print preview.
170 bool reported_failed_preview_; 173 bool reported_failed_preview_;
171 174
172 // Whether we have already logged the number of printers this session. 175 // Whether we have already logged the number of printers this session.
173 bool has_logged_printers_count_; 176 bool has_logged_printers_count_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 178 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
176 }; 179 };
177 180
178 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 181 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/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