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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/printing/print_job_worker_owner.h" 10 #include "chrome/browser/printing/print_job_worker_owner.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 class CancelableTask; 13 class CancelableTask;
14 class DictionaryValue;
15 class MessageLoop; 14 class MessageLoop;
16 15
17 namespace base { 16 namespace base {
17 class DictionaryValue;
18 class Thread; 18 class Thread;
19 } 19 }
20 20
21 namespace printing { 21 namespace printing {
22 22
23 class PrintJobWorker; 23 class PrintJobWorker;
24 24
25 // Query the printer for settings. 25 // Query the printer for settings.
26 class PrinterQuery : public PrintJobWorkerOwner { 26 class PrinterQuery : public PrintJobWorkerOwner {
27 public: 27 public:
(...skipping 18 matching lines...) Expand all
46 // be the owner of the print setting dialog box. It is unused when 46 // be the owner of the print setting dialog box. It is unused when
47 // |ask_for_user_settings| is DEFAULTS. 47 // |ask_for_user_settings| is DEFAULTS.
48 void GetSettings(GetSettingsAskParam ask_user_for_settings, 48 void GetSettings(GetSettingsAskParam ask_user_for_settings,
49 gfx::NativeView parent_view, 49 gfx::NativeView parent_view,
50 int expected_page_count, 50 int expected_page_count,
51 bool has_selection, 51 bool has_selection,
52 bool use_overlays, 52 bool use_overlays,
53 CancelableTask* callback); 53 CancelableTask* 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(const DictionaryValue& new_settings, 56 void SetSettings(const base::DictionaryValue& new_settings,
57 CancelableTask* callback); 57 CancelableTask* 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;
64 64
65 PrintingContext::Result last_status() const { return last_status_; } 65 PrintingContext::Result last_status() const { return last_status_; }
66 66
(...skipping 30 matching lines...) Expand all
97 97
98 // Task waiting to be executed. 98 // Task waiting to be executed.
99 scoped_ptr<CancelableTask> callback_; 99 scoped_ptr<CancelableTask> callback_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); 101 DISALLOW_COPY_AND_ASSIGN(PrinterQuery);
102 }; 102 };
103 103
104 } // namespace printing 104 } // namespace printing
105 105
106 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ 106 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_worker.h ('k') | chrome/browser/printing/printing_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698