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

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

Issue 6510007: Printing: Delete dead code in PrintJob and cleanup corresponding code in Prin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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_job_worker.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 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/printing/print_job_worker_owner.h" 10 #include "chrome/browser/printing/print_job_worker_owner.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void GetSettings(GetSettingsAskParam ask_user_for_settings, 47 void GetSettings(GetSettingsAskParam ask_user_for_settings,
48 gfx::NativeView parent_view, 48 gfx::NativeView parent_view,
49 int expected_page_count, 49 int expected_page_count,
50 bool has_selection, 50 bool has_selection,
51 bool use_overlays, 51 bool use_overlays,
52 CancelableTask* callback); 52 CancelableTask* callback);
53 53
54 // Stops the worker thread since the client is done with this object. 54 // Stops the worker thread since the client is done with this object.
55 void StopWorker(); 55 void StopWorker();
56 56
57 // Returns true if the Print... dialog box is currently displayed.
58 bool is_print_dialog_box_shown() const;
59
60 // Returns true if a GetSettings() call is pending completion. 57 // Returns true if a GetSettings() call is pending completion.
61 bool is_callback_pending() const; 58 bool is_callback_pending() const;
62 59
63 PrintingContext::Result last_status() const { return last_status_; } 60 PrintingContext::Result last_status() const { return last_status_; }
64 61
65 // Returns if a worker thread is still associated to this instance. 62 // Returns if a worker thread is still associated to this instance.
66 bool is_valid() const; 63 bool is_valid() const;
67 64
68 private: 65 private:
69 virtual ~PrinterQuery(); 66 virtual ~PrinterQuery();
(...skipping 21 matching lines...) Expand all
91 88
92 // Task waiting to be executed. 89 // Task waiting to be executed.
93 scoped_ptr<CancelableTask> callback_; 90 scoped_ptr<CancelableTask> callback_;
94 91
95 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); 92 DISALLOW_COPY_AND_ASSIGN(PrinterQuery);
96 }; 93 };
97 94
98 } // namespace printing 95 } // namespace printing
99 96
100 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ 97 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | chrome/browser/printing/printer_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698