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

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

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/printing/print_view_manager_base.h" 9 #include "chrome/browser/printing/print_view_manager_base.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
11 #include "printing/features/features.h"
11 12
12 namespace content { 13 namespace content {
13 class RenderProcessHost; 14 class RenderProcessHost;
14 } 15 }
15 16
16 namespace printing { 17 namespace printing {
17 18
18 // Manages the print commands for a WebContents. 19 // Manages the print commands for a WebContents.
19 class PrintViewManager : public PrintViewManagerBase, 20 class PrintViewManager : public PrintViewManagerBase,
20 public content::WebContentsUserData<PrintViewManager> { 21 public content::WebContentsUserData<PrintViewManager> {
21 public: 22 public:
22 ~PrintViewManager() override; 23 ~PrintViewManager() override;
23 24
24 #if defined(ENABLE_BASIC_PRINTING) 25 #if BUILDFLAG(ENABLE_BASIC_PRINTING)
25 // Same as PrintNow(), but for the case where a user prints with the system 26 // Same as PrintNow(), but for the case where a user prints with the system
26 // dialog from print preview. 27 // dialog from print preview.
27 // |dialog_shown_callback| is called when the print dialog is shown. 28 // |dialog_shown_callback| is called when the print dialog is shown.
28 bool PrintForSystemDialogNow(const base::Closure& dialog_shown_callback); 29 bool PrintForSystemDialogNow(const base::Closure& dialog_shown_callback);
29 30
30 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to 31 // 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 32 // show the native system dialog. This can happen from both initiator and
32 // preview dialog. 33 // preview dialog.
33 bool BasicPrint(); 34 bool BasicPrint();
34 #endif // ENABLE_BASIC_PRINTING 35 #endif // ENABLE_BASIC_PRINTING
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 81
81 // Keeps track of the pending callback during scripted print preview. 82 // Keeps track of the pending callback during scripted print preview.
82 content::RenderProcessHost* scripted_print_preview_rph_; 83 content::RenderProcessHost* scripted_print_preview_rph_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 85 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
85 }; 86 };
86 87
87 } // namespace printing 88 } // namespace printing
88 89
89 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 90 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/cloud_print/privet_http_unittest.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698