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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/shell_dialogs/selected_file_info.h
diff --git a/ui/shell_dialogs/selected_file_info.h b/ui/shell_dialogs/selected_file_info.h
index a1789c970384dcc5340a151c45faa283bd80b2fb..004b3b5f43d9b184d0181ddefd1209d6ddcaea84 100644
--- a/ui/shell_dialogs/selected_file_info.h
+++ b/ui/shell_dialogs/selected_file_info.h
@@ -31,10 +31,18 @@ struct SHELL_DIALOGS_EXPORT SelectedFileInfo {
// |path| is used for displaying.
base::FilePath::StringType display_name;
+ // On the Mac, a user can set a selected file to hide its file extension when
+ // listed in the Finder.
+ bool hide_file_extension;
+
SelectedFileInfo();
SelectedFileInfo(const base::FilePath& in_file_path,
const base::FilePath& in_local_path);
~SelectedFileInfo();
+
+ // Records that this FilePath represents a file that should hide its
+ // file extension and adjusts |display_name| accordingly.
+ void SetHideFileExtension(bool hide_extension);
};
} // namespace ui
« 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