Tthorogood@chromium.orgAlways include base extension type in Mac select file dialog
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Add benwells@ to chrome/browser/extensions/api/file_system OWNERS. TBR=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/10907023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154342 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Always include base extension type in Mac select file dialog Previously, we were only converting the extension to a UTI, and using that to control what files the user could load using the generic select file dialog. For some reason, Mac's conversions of some types - such as '.ogg' - resulted in a UTI prefixed with 'dyn' that didn't seem to correspond back to '.ogg' itself. The solution here is just to always include the original extension as well as the UTI. FWIW, the rest of this file needs updating to support lots of more complex things we now do with Packaged Apps. BUG=148840 Review URL: https://chromiumcodereview.appspot.com/10915252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157332 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Rename chrome.fileSystem apis to be expandable to directories if we wish. The naming is currently all about files, this change makes it file / directory neutral to allow us to use the same APIs for directories at some point if we decide to. BUG=149152 Review URL: https://chromiumcodereview.appspot.com/10914284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156795 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Rename chrome.fileSystem apis to be expandable to directories if we wish. The naming is currently all about files, this change makes it file / directory neutral to allow us to use the same APIs for directories at some point if we decide to. BUG=149152 Review URL: https://chromiumcodereview.appspot.com/10914284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156795 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
This updates the getDisplayPath fileSystem API call to focus more on prettifying the user's home directory: this seems to be the main obvious use of function for now (it's previous extensibility was probably needless). Additionally, this adds code specifically to prettify Mac path names, which have various possibilities for prettifying through localization, but are singly exposed via the LSCopyDisplayNameForRef call. Basically, on a Mac, folders that end with ".localized" or ".app" can be localized due to their contents (e.g., they may have a name for English, and another for German). Additionally, folders directly within your home directory may be localized by your system language settings (again, perhaps you're set to non-English). These folders do not change their actual name on disk, but within Finder/etc, they appear differently. BUG=135690 Review URL: https://chromiumcodereview.appspot.com/10823157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157043 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 |