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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dialogs/selected_file_info.h
diff --git a/ui/base/dialogs/selected_file_info.h b/ui/base/dialogs/selected_file_info.h
index 005de6faecc88e73931ac02d54ded641b5cf70dd..db7c570fd2914a9d11aee1651f46864f9f4c553e 100644
--- a/ui/base/dialogs/selected_file_info.h
+++ b/ui/base/dialogs/selected_file_info.h
@@ -15,9 +15,16 @@ namespace ui {
// Struct used for passing selected file info to WebKit.
struct UI_EXPORT SelectedFileInfo {
- // The real path to the selected file. This can be a snapshot file with a
- // human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e.
- FilePath path;
+ // Selected file's user friendly path as seen in the UI.
+ FilePath file_path;
+
+ // The actual local path to the selected file. This can be a snapshot file
+ // with a human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e.
+ // |real_path| can differ from |file_path| for drive files (e.g.
+ // /drive_cache/temporary/d41d8cd98f00b204e9800998ecf8427e vs.
+ // /special/drive/foo.txt).
+ // If not set, defaults to |file_path|.
+ FilePath local_path;
// This field is optional. The display name contains only the base name
// portion of a file name (ex. no path separators), and used for displaying
@@ -26,8 +33,8 @@ struct UI_EXPORT SelectedFileInfo {
FilePath::StringType display_name;
SelectedFileInfo();
- SelectedFileInfo(const FilePath& in_path,
- const FilePath::StringType& in_display_name);
+ SelectedFileInfo(const FilePath& in_file_path,
+ const FilePath& in_local_path);
~SelectedFileInfo();
};
« 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