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

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

Issue 118338: Add support for printing selection only flag. This only adds the flag to the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/printing/print_settings.cc ('k') | chrome/browser/printing/printer_query.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "chrome/browser/printing/print_job_worker_owner.h" 10 #include "chrome/browser/printing/print_job_worker_owner.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 virtual int cookie() const { return cookie_; } 51 virtual int cookie() const { return cookie_; }
52 52
53 // Initializes the printing context. It is fine to call this function multiple 53 // Initializes the printing context. It is fine to call this function multiple
54 // times to reinitialize the settings. |parent_window| parameter will be the 54 // times to reinitialize the settings. |parent_window| parameter will be the
55 // owner of the print setting dialog box. It is unused when 55 // owner of the print setting dialog box. It is unused when
56 // |ask_for_user_settings| is DEFAULTS. 56 // |ask_for_user_settings| is DEFAULTS.
57 void GetSettings(GetSettingsAskParam ask_user_for_settings, 57 void GetSettings(GetSettingsAskParam ask_user_for_settings,
58 HWND parent_window, 58 HWND parent_window,
59 int expected_page_count, 59 int expected_page_count,
60 bool has_selection,
60 CancelableTask* callback); 61 CancelableTask* callback);
61 62
62 // Stops the worker thread since the client is done with this object. 63 // Stops the worker thread since the client is done with this object.
63 void StopWorker(); 64 void StopWorker();
64 65
65 // Returns true if the Print... dialog box is currently displayed. 66 // Returns true if the Print... dialog box is currently displayed.
66 bool is_print_dialog_box_shown() const; 67 bool is_print_dialog_box_shown() const;
67 68
68 // Returns true if a GetSettings() call is pending completion. 69 // Returns true if a GetSettings() call is pending completion.
69 bool is_callback_pending() const; 70 bool is_callback_pending() const;
(...skipping 27 matching lines...) Expand all
97 98
98 // Task waiting to be executed. 99 // Task waiting to be executed.
99 scoped_ptr<CancelableTask> callback_; 100 scoped_ptr<CancelableTask> callback_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); 102 DISALLOW_COPY_AND_ASSIGN(PrinterQuery);
102 }; 103 };
103 104
104 } // namespace printing 105 } // namespace printing
105 106
106 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ 107 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_settings.cc ('k') | chrome/browser/printing/printer_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698