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 UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ | 5 #ifndef UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ |
| 6 #define UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ | 6 #define UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "ui/base/ui_export.h" | 12 #include "ui/base/ui_export.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 | 15 |
| 16 // Struct used for passing selected file info to WebKit. | 16 // Struct used for passing selected file info to WebKit. |
| 17 struct UI_EXPORT SelectedFileInfo { | 17 struct UI_EXPORT SelectedFileInfo { |
| 18 FilePath file_path; | |
|
achuithb
2012/07/24 20:13:05
Maybe add a comment here? What does file_path look
tbarzic
2012/07/25 02:02:54
yeah, I meant to add a comment here..
| |
| 19 | |
| 18 // The real path to the selected file. This can be a snapshot file with a | 20 // The real path to the selected file. This can be a snapshot file with a |
| 19 // human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e. | 21 // human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e. |
| 20 FilePath path; | 22 FilePath real_path; |
| 21 | 23 |
| 22 // This field is optional. The display name contains only the base name | 24 // This field is optional. The display name contains only the base name |
| 23 // portion of a file name (ex. no path separators), and used for displaying | 25 // portion of a file name (ex. no path separators), and used for displaying |
| 24 // selected file names. If this field is empty, the base name portion of | 26 // selected file names. If this field is empty, the base name portion of |
| 25 // |path| is used for displaying. | 27 // |path| is used for displaying. |
| 26 FilePath::StringType display_name; | 28 FilePath::StringType display_name; |
| 27 | 29 |
| 28 SelectedFileInfo(); | 30 SelectedFileInfo(); |
| 29 SelectedFileInfo(const FilePath& in_path, | 31 SelectedFileInfo(const FilePath& in_file_path, |
| 30 const FilePath::StringType& in_display_name); | 32 const FilePath& in_real_path); |
| 31 ~SelectedFileInfo(); | 33 ~SelectedFileInfo(); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace ui | 36 } // namespace ui |
| 35 | 37 |
| 36 #endif // UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ | 38 #endif // UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ |
| OLD | NEW |