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

Side by Side Diff: ui/shell_dialogs/selected_file_info.h

Issue 1513413002: Enable "Hide Extension" option when "Save Link As" on the Mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years 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
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_mac.mm ('k') | ui/shell_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SHELL_DIALOGS_SELECTED_FILE_INFO_H_ 5 #ifndef UI_SHELL_DIALOGS_SELECTED_FILE_INFO_H_
6 #define UI_SHELL_DIALOGS_SELECTED_FILE_INFO_H_ 6 #define UI_SHELL_DIALOGS_SELECTED_FILE_INFO_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 13 matching lines...) Expand all
24 // /drive_cache/temporary/d41d8cd98f00b204e9800998ecf8427e vs. 24 // /drive_cache/temporary/d41d8cd98f00b204e9800998ecf8427e vs.
25 // /special/drive/foo.txt). 25 // /special/drive/foo.txt).
26 base::FilePath local_path; 26 base::FilePath local_path;
27 27
28 // 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
29 // 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
30 // 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
31 // |path| is used for displaying. 31 // |path| is used for displaying.
32 base::FilePath::StringType display_name; 32 base::FilePath::StringType display_name;
33 33
34 // On the Mac, a user can set a selected file to hide its file extension when
35 // listed in the Finder.
36 bool hide_file_extension;
37
34 SelectedFileInfo(); 38 SelectedFileInfo();
35 SelectedFileInfo(const base::FilePath& in_file_path, 39 SelectedFileInfo(const base::FilePath& in_file_path,
36 const base::FilePath& in_local_path); 40 const base::FilePath& in_local_path);
37 ~SelectedFileInfo(); 41 ~SelectedFileInfo();
42
43 // Records that this FilePath represents a file that should hide its
44 // file extension and adjusts |display_name| accordingly.
45 void SetHideFileExtension(bool hide_extension);
38 }; 46 };
39 47
40 } // namespace ui 48 } // namespace ui
41 49
42 #endif // UI_SHELL_DIALOGS_SELECTED_FILE_INFO_H_ 50 #endif // UI_SHELL_DIALOGS_SELECTED_FILE_INFO_H_
OLDNEW
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_mac.mm ('k') | ui/shell_dialogs/selected_file_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698