| OLD | NEW |
| 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 CLOUD_PRINT_VIRTUAL_DRIVER_VIRTUAL_DRIVER_SWITCHES_H_ | 5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_VIRTUAL_DRIVER_SWITCHES_H_ |
| 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_VIRTUAL_DRIVER_SWITCHES_H_ | 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_VIRTUAL_DRIVER_SWITCHES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 // These constants are duplicated from chrome/common/chrome_switches.cc | 10 // These constants are duplicated from chrome/common/chrome_switches.cc |
| 11 // in order to avoid dependency problems. | 11 // in order to avoid dependency problems. |
| 12 // TODO(abodenha@chromium.org) Reunify them in some sensible manner. | 12 // TODO(abodenha@chromium.org) Reunify them in some sensible manner. |
| 13 // Bug: www.crbug.com/88991 | 13 // Bug: www.crbug.com/88991 |
| 14 | 14 |
| 15 // Location of Chrome user profile. Optional. |
| 16 extern const char kCloudPrintUserDataDir[]; |
| 17 |
| 15 // Used with kCloudPrintFile. Tells Chrome to delete the file when | 18 // Used with kCloudPrintFile. Tells Chrome to delete the file when |
| 16 // finished displaying the print dialog. | 19 // finished displaying the print dialog. |
| 17 extern const char kCloudPrintDeleteFile[]; | 20 extern const char kCloudPrintDeleteFile[]; |
| 18 | 21 |
| 19 // Tells chrome to display the cloud print dialog and upload the | 22 // Tells chrome to display the cloud print dialog and upload the |
| 20 // specified file for printing. | 23 // specified file for printing. |
| 21 extern const char kCloudPrintFile[]; | 24 extern const char kCloudPrintFile[]; |
| 22 | 25 |
| 23 // Used with kCloudPrintFile to specify a title for the resulting print | 26 // Used with kCloudPrintFile to specify a title for the resulting print |
| 24 // job. | 27 // job. |
| 25 extern const char kCloudPrintJobTitle[]; | 28 extern const char kCloudPrintJobTitle[]; |
| 26 | 29 |
| 27 // Specifies the mime type to be used when uploading data from the | 30 // Specifies the mime type to be used when uploading data from the |
| 28 // file referenced by cloud-print-file. | 31 // file referenced by cloud-print-file. |
| 29 // Defaults to "application/pdf" if unspecified. | 32 // Defaults to "application/pdf" if unspecified. |
| 30 extern const char kCloudPrintFileType[]; | 33 extern const char kCloudPrintFileType[]; |
| 31 | 34 |
| 32 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting | 35 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting |
| 33 // print job. | 36 // print job. |
| 34 // Defaults to null if unspecified. | 37 // Defaults to null if unspecified. |
| 35 extern const char kCloudPrintPrintTicket[]; | 38 extern const char kCloudPrintPrintTicket[]; |
| 36 } // namespace switches | 39 } // namespace switches |
| 37 | 40 |
| 38 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_VIRTUAL_DRIVER_SWITCHES_H_ | 41 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_VIRTUAL_DRIVER_SWITCHES_H_ |
| OLD | NEW |