|
Modified the pepper file chooser API to support filtering files by extensions.
Previously you could filter only by MIME type. This adds support for filtering by specific extensions as well, e.g. .txt,.html. This change is aligned with the web platform which now allows filtering by file extension for <input> elements ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#attr-input-accept).
This also changes the linux implementation of the file dialog (SelectFileDialogImplGTK). In the past, it would turn file extensions to filter into MIME types. However this is a bit silly because in FileSelectHelper we do the reverse (turn MIME types into a list of file extensions to filter by). It also prevents us from filtering by a specific extensions when this is really what is desired.
BUG= 129251
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139434
Total comments: 5
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+147 lines, -115 lines) |
Patch |
|
M |
chrome/browser/file_select_helper.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/file_select_helper.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+27 lines, -12 lines |
0 comments
|
Download
|
|
A |
chrome/browser/file_select_helper_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/select_file_dialog_impl_gtk.cc
|
View
|
1
2
3
|
3 chunks |
+4 lines, -21 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/public/common/file_chooser_params.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_view_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
ppapi/api/dev/ppb_file_chooser_dev.idl
|
View
|
|
2 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
|
M |
ppapi/c/dev/ppb_file_chooser_dev.h
|
View
|
|
3 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
|
M |
ppapi/cpp/dev/file_chooser_dev.h
|
View
|
1
|
1 chunk |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
ppapi/cpp/dev/file_chooser_dev.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
ppapi/cpp/trusted/file_chooser_trusted.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/cpp/trusted/file_chooser_trusted.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/examples/file_chooser/file_chooser.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppapi_messages.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_file_chooser_proxy.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_file_chooser_proxy.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/resource_creation_proxy.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/resource_creation_proxy.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/thunk/ppb_file_chooser_thunk.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/thunk/resource_creation_api.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/ppb_file_chooser_impl.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/ppb_file_chooser_impl.cc
|
View
|
1
|
4 chunks |
+25 lines, -21 lines |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/resource_creation_impl.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/resource_creation_impl.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|