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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // - replacing with other files | 64 // - replacing with other files |
65 // before opening a file chooser dialog. | 65 // before opening a file chooser dialog. |
66 WebVector<WebString> selectedFiles; | 66 WebVector<WebString> selectedFiles; |
67 // See http://www.w3.org/TR/html-media-capture/ for the semantics of the | 67 // See http://www.w3.org/TR/html-media-capture/ for the semantics of the |
68 // capture attribute. If |useMediaCapture| is true, the media types | 68 // capture attribute. If |useMediaCapture| is true, the media types |
69 // indicated in |acceptTypes| should be obtained from the device's | 69 // indicated in |acceptTypes| should be obtained from the device's |
70 // environment using a media capture mechanism. |capture| is deprecated and | 70 // environment using a media capture mechanism. |capture| is deprecated and |
71 // provided for compatibility reasons. | 71 // provided for compatibility reasons. |
72 WebString capture; | 72 WebString capture; |
73 bool useMediaCapture; | 73 bool useMediaCapture; |
| 74 // Whether WebFileChooserCompletion needs local paths or not. If the result |
| 75 // of file chooser is handled by the implementation of |
| 76 // WebFileChooserCompletion that can handle files without local paths, |
| 77 // 'false' should be specified to the flag. |
| 78 bool needLocalPath; |
74 | 79 |
75 WebFileChooserParams() | 80 WebFileChooserParams() |
76 : multiSelect(false) | 81 : multiSelect(false) |
77 , directory(false) | 82 , directory(false) |
78 , saveAs(false) | 83 , saveAs(false) |
79 , useMediaCapture(false) | 84 , useMediaCapture(false) |
| 85 , needLocalPath(true) |
80 { | 86 { |
81 } | 87 } |
82 }; | 88 }; |
83 | 89 |
84 } // namespace blink | 90 } // namespace blink |
85 | 91 |
86 #endif | 92 #endif |
OLD | NEW |