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

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

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again, resolve conflicts Created 4 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
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_PRINTER_QUERY_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
6 #define CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ 6 #define CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 26 matching lines...) Expand all
37 void GetSettingsDone(const PrintSettings& new_settings, 37 void GetSettingsDone(const PrintSettings& new_settings,
38 PrintingContext::Result result) override; 38 PrintingContext::Result result) override;
39 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override; 39 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override;
40 const PrintSettings& settings() const override; 40 const PrintSettings& settings() const override;
41 int cookie() const override; 41 int cookie() const override;
42 42
43 // Initializes the printing context. It is fine to call this function multiple 43 // Initializes the printing context. It is fine to call this function multiple
44 // times to reinitialize the settings. |web_contents_observer| can be queried 44 // times to reinitialize the settings. |web_contents_observer| can be queried
45 // to find the owner of the print setting dialog box. It is unused when 45 // to find the owner of the print setting dialog box. It is unused when
46 // |ask_for_user_settings| is DEFAULTS. 46 // |ask_for_user_settings| is DEFAULTS.
47 void GetSettings( 47 void GetSettings(GetSettingsAskParam ask_user_for_settings,
48 GetSettingsAskParam ask_user_for_settings, 48 int expected_page_count,
49 int expected_page_count, 49 bool has_selection,
50 bool has_selection, 50 MarginType margin_type,
51 MarginType margin_type, 51 bool is_scripted,
52 bool is_scripted, 52 bool is_modifiable,
53 const base::Closure& callback); 53 const base::Closure& callback);
54 54
55 // Updates the current settings with |new_settings| dictionary values. 55 // Updates the current settings with |new_settings| dictionary values.
56 void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings, 56 void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings,
57 const base::Closure& callback); 57 const base::Closure& callback);
58 58
59 // Stops the worker thread since the client is done with this object. 59 // Stops the worker thread since the client is done with this object.
60 void StopWorker(); 60 void StopWorker();
61 61
62 // Returns true if a GetSettings() call is pending completion. 62 // Returns true if a GetSettings() call is pending completion.
63 bool is_callback_pending() const; 63 bool is_callback_pending() const;
(...skipping 28 matching lines...) Expand all
92 92
93 // Callback waiting to be run. 93 // Callback waiting to be run.
94 base::Closure callback_; 94 base::Closure callback_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); 96 DISALLOW_COPY_AND_ASSIGN(PrinterQuery);
97 }; 97 };
98 98
99 } // namespace printing 99 } // namespace printing
100 100
101 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ 101 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager_base.cc ('k') | chrome/browser/printing/printer_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698