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

Side by Side Diff: ui/base/dialogs/selected_file_info.h

Issue 10804026: Fix open dialog not remembering last opened folder on drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remofe file manager change Created 8 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
« no previous file with comments | « ui/base/dialogs/select_file_dialog.cc ('k') | ui/base/dialogs/selected_file_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // The real path to the selected file. This can be a snapshot file with a 18 // Selected file's user friendly path as seen in the UI.
19 // human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e. 19 FilePath file_path;
achuithb 2012/07/25 18:11:23 What's the rationale for changing this name from p
tbarzic 2012/07/25 18:42:59 actually, |real_path| has taken over the role of |
20 FilePath path; 20
21 // The actual local path to the selected file. This can be a snapshot file
22 // with a human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e.
23 // |real_path| can differ from |file_path| for drive files (e.g.
24 // /drive_cache/temporary/d41d8cd98f00b204e9800998ecf8427e vs.
25 // /special/drive/foo.txt).
26 FilePath real_path;
achuithb 2012/07/25 18:11:23 Is local_path a better name?
tbarzic 2012/07/25 18:42:59 Done.
21 27
22 // This field is optional. The display name contains only the base name 28 // 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 29 // 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 30 // selected file names. If this field is empty, the base name portion of
25 // |path| is used for displaying. 31 // |path| is used for displaying.
26 FilePath::StringType display_name; 32 FilePath::StringType display_name;
27 33
28 SelectedFileInfo(); 34 SelectedFileInfo();
29 SelectedFileInfo(const FilePath& in_path, 35 SelectedFileInfo(const FilePath& in_file_path,
30 const FilePath::StringType& in_display_name); 36 const FilePath& in_real_path);
31 ~SelectedFileInfo(); 37 ~SelectedFileInfo();
32 }; 38 };
33 39
34 } // namespace ui 40 } // namespace ui
35 41
36 #endif // UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_ 42 #endif // UI_BASE_DIALOGS_SELECTED_FILE_INFO_H_
OLDNEW
« no previous file with comments | « ui/base/dialogs/select_file_dialog.cc ('k') | ui/base/dialogs/selected_file_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698