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

Side by Side Diff: chrome/browser/printing/print_view_manager.h

Issue 546373002: Revert of More System Dialog printing code disabled on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@522493002
Patch Set: Mon Sep 8 00:14:11 PDT 2014 Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PRINTING_PRINT_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 7
8 #include "chrome/browser/printing/print_view_manager_base.h" 8 #include "chrome/browser/printing/print_view_manager_base.h"
9 #include "content/public/browser/web_contents_user_data.h" 9 #include "content/public/browser/web_contents_user_data.h"
10 10
11 namespace content { 11 namespace content {
12 class RenderProcessHost; 12 class RenderProcessHost;
13 } 13 }
14 14
15 namespace printing { 15 namespace printing {
16 16
17 class PrintViewManagerObserver; 17 class PrintViewManagerObserver;
18 18
19 // Manages the print commands for a WebContents. 19 // Manages the print commands for a WebContents.
20 class PrintViewManager : public PrintViewManagerBase, 20 class PrintViewManager : public PrintViewManagerBase,
21 public content::WebContentsUserData<PrintViewManager> { 21 public content::WebContentsUserData<PrintViewManager> {
22 public: 22 public:
23 virtual ~PrintViewManager(); 23 virtual ~PrintViewManager();
24 24
25 #if !defined(OS_WIN)
26 // Same as PrintNow(), but for the case where a user prints with the system 25 // Same as PrintNow(), but for the case where a user prints with the system
27 // dialog from print preview. 26 // dialog from print preview.
28 bool PrintForSystemDialogNow(); 27 bool PrintForSystemDialogNow();
29 28
30 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to 29 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to
31 // show the native system dialog. This can happen from both initiator and 30 // show the native system dialog. This can happen from both initiator and
32 // preview dialog. 31 // preview dialog.
33 bool AdvancedPrintNow(); 32 bool AdvancedPrintNow();
34 #endif // !OS_WIN
35 33
36 // Initiate print preview of the current document by first notifying the 34 // Initiate print preview of the current document by first notifying the
37 // renderer. Since this happens asynchronous, the print preview dialog 35 // renderer. Since this happens asynchronous, the print preview dialog
38 // creation will not be completed on the return of this function. Returns 36 // creation will not be completed on the return of this function. Returns
39 // false if print preview is impossible at the moment. 37 // false if print preview is impossible at the moment.
40 bool PrintPreviewNow(bool selection_only); 38 bool PrintPreviewNow(bool selection_only);
41 39
42 // Notify PrintViewManager that print preview is starting in the renderer for 40 // Notify PrintViewManager that print preview is starting in the renderer for
43 // a particular WebNode. 41 // a particular WebNode.
44 void PrintPreviewForWebNode(); 42 void PrintPreviewForWebNode();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 82
85 // Keeps track of the pending callback during scripted print preview. 83 // Keeps track of the pending callback during scripted print preview.
86 content::RenderProcessHost* scripted_print_preview_rph_; 84 content::RenderProcessHost* scripted_print_preview_rph_;
87 85
88 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 86 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
89 }; 87 };
90 88
91 } // namespace printing 89 } // namespace printing
92 90
93 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 91 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698