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

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

Issue 702603004: Renamed DISABLE_BASIC_PRINTING and ENABLE_FULL_PRINTING. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wed Nov 5 02:31:54 PST 2014 Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BASE_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/prefs/pref_member.h" 9 #include "base/prefs/pref_member.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 17 matching lines...) Expand all
28 class PrintJobWorkerOwner; 28 class PrintJobWorkerOwner;
29 class PrintQueriesQueue; 29 class PrintQueriesQueue;
30 30
31 // Base class for managing the print commands for a WebContents. 31 // Base class for managing the print commands for a WebContents.
32 class PrintViewManagerBase : public content::NotificationObserver, 32 class PrintViewManagerBase : public content::NotificationObserver,
33 public PrintedPagesSource, 33 public PrintedPagesSource,
34 public content::WebContentsObserver { 34 public content::WebContentsObserver {
35 public: 35 public:
36 ~PrintViewManagerBase() override; 36 ~PrintViewManagerBase() override;
37 37
38 #if !defined(DISABLE_BASIC_PRINTING) 38 #if defined(ENABLE_BASIC_PRINTING)
39 // Prints the current document immediately. Since the rendering is 39 // Prints the current document immediately. Since the rendering is
40 // asynchronous, the actual printing will not be completed on the return of 40 // asynchronous, the actual printing will not be completed on the return of
41 // this function. Returns false if printing is impossible at the moment. 41 // this function. Returns false if printing is impossible at the moment.
42 virtual bool PrintNow(); 42 virtual bool PrintNow();
43 #endif // !DISABLE_BASIC_PRINTING 43 #endif // ENABLE_BASIC_PRINTING
44 44
45 // Whether to block scripted printing for our tab or not. 45 // Whether to block scripted printing for our tab or not.
46 void UpdateScriptedPrintingBlocked(); 46 void UpdateScriptedPrintingBlocked();
47 47
48 // PrintedPagesSource implementation. 48 // PrintedPagesSource implementation.
49 base::string16 RenderSourceName() override; 49 base::string16 RenderSourceName() override;
50 50
51 protected: 51 protected:
52 explicit PrintViewManagerBase(content::WebContents* web_contents); 52 explicit PrintViewManagerBase(content::WebContents* web_contents);
53 53
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 BooleanPrefMember printing_enabled_; 160 BooleanPrefMember printing_enabled_;
161 161
162 scoped_refptr<printing::PrintQueriesQueue> queue_; 162 scoped_refptr<printing::PrintQueriesQueue> queue_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase); 164 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase);
165 }; 165 };
166 166
167 } // namespace printing 167 } // namespace printing
168 168
169 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ 169 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698