OLD | NEW |
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_PRINT_DIALOG_CLOUD_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
| 16 class CommandLine; |
| 17 |
| 18 namespace base { |
16 class FilePath; | 19 class FilePath; |
17 class CommandLine; | 20 } |
18 | 21 |
19 namespace content { | 22 namespace content { |
20 class BrowserContext; | 23 class BrowserContext; |
21 } | 24 } |
22 | 25 |
23 namespace print_dialog_cloud { | 26 namespace print_dialog_cloud { |
24 | 27 |
25 // Creates a print dialog to print a file on disk. | 28 // Creates a print dialog to print a file on disk. |
26 // Called on the FILE or UI thread. Even though this may start up a modal | 29 // Called on the FILE or UI thread. Even though this may start up a modal |
27 // dialog, it will return immediately. The dialog is handled asynchronously. | 30 // dialog, it will return immediately. The dialog is handled asynchronously. |
28 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal | 31 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal |
29 // to. | 32 // to. |
30 void CreatePrintDialogForFile(content::BrowserContext* browser_context, | 33 void CreatePrintDialogForFile(content::BrowserContext* browser_context, |
31 gfx::NativeWindow modal_parent, | 34 gfx::NativeWindow modal_parent, |
32 const FilePath& path_to_file, | 35 const base::FilePath& path_to_file, |
33 const string16& print_job_title, | 36 const string16& print_job_title, |
34 const string16& print_ticket, | 37 const string16& print_ticket, |
35 const std::string& file_type, | 38 const std::string& file_type, |
36 bool delete_on_close); | 39 bool delete_on_close); |
37 | 40 |
38 // Creates a print dialog to print data in RAM. | 41 // Creates a print dialog to print data in RAM. |
39 // Called on the FILE or UI thread. Even though this may start up a modal | 42 // Called on the FILE or UI thread. Even though this may start up a modal |
40 // dialog, it will return immediately. The dialog is handled asynchronously. | 43 // dialog, it will return immediately. The dialog is handled asynchronously. |
41 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal | 44 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal |
42 // to. | 45 // to. |
(...skipping 14 matching lines...) Expand all Loading... |
57 // dialog, it will return immediately. The dialog is handled asynchronously. | 60 // dialog, it will return immediately. The dialog is handled asynchronously. |
58 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal | 61 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal |
59 // to. | 62 // to. |
60 void CreateCloudPrintSigninDialog(content::BrowserContext* browser_context, | 63 void CreateCloudPrintSigninDialog(content::BrowserContext* browser_context, |
61 gfx::NativeWindow modal_parent, | 64 gfx::NativeWindow modal_parent, |
62 const base::Closure& callback); | 65 const base::Closure& callback); |
63 | 66 |
64 } // end namespace | 67 } // end namespace |
65 | 68 |
66 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 69 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
OLD | NEW |