Chromium Code Reviews| 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 CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ | 6 #define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 // which will be either "Open" or "Save" depending on the mode. | 39 // which will be either "Open" or "Save" depending on the mode. |
| 40 base::string16 title; | 40 base::string16 title; |
| 41 | 41 |
| 42 // Default file name to select in the dialog. | 42 // Default file name to select in the dialog. |
| 43 base::FilePath default_file_name; | 43 base::FilePath default_file_name; |
| 44 | 44 |
| 45 // A list of valid lower-cased MIME types or file extensions specified in an | 45 // A list of valid lower-cased MIME types or file extensions specified in an |
| 46 // input element. It is used to restrict selectable files to such types. | 46 // input element. It is used to restrict selectable files to such types. |
| 47 std::vector<base::string16> accept_types; | 47 std::vector<base::string16> accept_types; |
| 48 | 48 |
| 49 // Whether the caller needs native file path or not. | |
| 50 bool need_local_path; | |
|
Lei Zhang
2014/10/21 10:42:03
You may want to put this in the initializer list,
hirono
2014/10/22 06:43:12
Done.
| |
| 51 | |
| 49 #if defined(OS_ANDROID) | 52 #if defined(OS_ANDROID) |
| 50 // See http://www.w3.org/TR/html-media-capture for more information. | 53 // See http://www.w3.org/TR/html-media-capture for more information. |
| 51 // If true, the data should be obtained using the device's camera/mic/etc. | 54 // If true, the data should be obtained using the device's camera/mic/etc. |
| 52 bool capture; | 55 bool capture; |
| 53 #endif | 56 #endif |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } // namespace content | 59 } // namespace content |
| 57 | 60 |
| 58 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ | 61 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ |
| OLD | NEW |