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

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

Issue 1997016: Set the job name for the print job on the Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
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 "chrome/browser/printing/print_job_worker_owner.h" 9 #include "chrome/browser/printing/print_job_worker_owner.h"
10 #include "gfx/native_widget_types.h" 10 #include "gfx/native_widget_types.h"
(...skipping 25 matching lines...) Expand all
36 PrintingContext::Result result); 36 PrintingContext::Result result);
37 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner); 37 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner);
38 virtual MessageLoop* message_loop() { 38 virtual MessageLoop* message_loop() {
39 return ui_message_loop_; 39 return ui_message_loop_;
40 } 40 }
41 virtual const PrintSettings& settings() const { return settings_; } 41 virtual const PrintSettings& settings() const { return settings_; }
42 42
43 virtual int cookie() const { return cookie_; } 43 virtual int cookie() const { return cookie_; }
44 44
45 // Initializes the printing context. It is fine to call this function multiple 45 // Initializes the printing context. It is fine to call this function multiple
46 // times to reinitialize the settings. |parent_window| parameter will be the 46 // times to reinitialize the settings. |parent_view| parameter's window will
47 // owner of the print setting dialog box. It is unused when 47 // be the owner of the print setting dialog box. It is unused when
48 // |ask_for_user_settings| is DEFAULTS. 48 // |ask_for_user_settings| is DEFAULTS.
49 void GetSettings(GetSettingsAskParam ask_user_for_settings, 49 void GetSettings(GetSettingsAskParam ask_user_for_settings,
50 gfx::NativeWindow parent_window, 50 gfx::NativeView parent_view,
51 int expected_page_count, 51 int expected_page_count,
52 bool has_selection, 52 bool has_selection,
53 bool use_overlays, 53 bool use_overlays,
54 CancelableTask* callback); 54 CancelableTask* callback);
55 55
56 // Stops the worker thread since the client is done with this object. 56 // Stops the worker thread since the client is done with this object.
57 void StopWorker(); 57 void StopWorker();
58 58
59 // Returns true if the Print... dialog box is currently displayed. 59 // Returns true if the Print... dialog box is currently displayed.
60 bool is_print_dialog_box_shown() const; 60 bool is_print_dialog_box_shown() const;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Task waiting to be executed. 94 // Task waiting to be executed.
95 scoped_ptr<CancelableTask> callback_; 95 scoped_ptr<CancelableTask> callback_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); 97 DISALLOW_COPY_AND_ASSIGN(PrinterQuery);
98 }; 98 };
99 99
100 } // namespace printing 100 } // namespace printing
101 101
102 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ 102 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698