OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // If |multiSelect| is true, the dialog allows the user to select multiple | 42 // If |multiSelect| is true, the dialog allows the user to select multiple |
43 // files. | 43 // files. |
44 bool multiSelect; | 44 bool multiSelect; |
45 // If |directory| is true, the dialog allows the user to select a directory. | 45 // If |directory| is true, the dialog allows the user to select a directory. |
46 bool directory; | 46 bool directory; |
47 // If |saveAs| is true, the dialog allows the user to select a possibly | 47 // If |saveAs| is true, the dialog allows the user to select a possibly |
48 // non-existent file. This can be used for a "Save As" dialog. | 48 // non-existent file. This can be used for a "Save As" dialog. |
49 bool saveAs; | 49 bool saveAs; |
50 // |title| is the title for a file chooser dialog. It can be an empty string. | 50 // |title| is the title for a file chooser dialog. It can be an empty string. |
51 WebString title; | 51 WebString title; |
52 // |initialValue| is a filename which the dialog should select by default. | |
53 // It can be an empty string. | |
54 WebString initialValue; | |
55 // This contains MIME type strings such as "audio/*" "text/plain" or file | 52 // This contains MIME type strings such as "audio/*" "text/plain" or file |
56 // extensions beginning with a period (.) such as ".mp3" ".txt". | 53 // extensions beginning with a period (.) such as ".mp3" ".txt". |
57 // The dialog may restrict selectable files to files with the specified MIME | 54 // The dialog may restrict selectable files to files with the specified MIME |
58 // types or file extensions. | 55 // types or file extensions. |
59 // This list comes from an 'accept' attribute value of an INPUT element, and | 56 // This list comes from an 'accept' attribute value of an INPUT element, and |
60 // it contains only lower-cased MIME type strings and file extensions. | 57 // it contains only lower-cased MIME type strings and file extensions. |
61 WebVector<WebString> acceptTypes; | 58 WebVector<WebString> acceptTypes; |
62 // |selectedFiles| has filenames which a file upload control already selected. | 59 // |selectedFiles| has filenames which a file upload control already selected. |
63 // A WebViewClient implementation may ask a user to select | 60 // A WebViewClient implementation may ask a user to select |
64 // - removing a file from the selected files, | 61 // - removing a file from the selected files, |
(...skipping 21 matching lines...) Expand all Loading... |
86 : multiSelect(false), | 83 : multiSelect(false), |
87 directory(false), | 84 directory(false), |
88 saveAs(false), | 85 saveAs(false), |
89 useMediaCapture(false), | 86 useMediaCapture(false), |
90 needLocalPath(true) {} | 87 needLocalPath(true) {} |
91 }; | 88 }; |
92 | 89 |
93 } // namespace blink | 90 } // namespace blink |
94 | 91 |
95 #endif | 92 #endif |
OLD | NEW |