| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // File-level comment to appease parser. Eventually this will not be necessary. | 5 // File-level comment to appease parser. Eventually this will not be necessary. |
| 6 | 6 |
| 7 [nodoc] namespace fileSystem { | 7 [nodoc] namespace fileSystem { |
| 8 dictionary ChooseFileOptions { |
| 9 // type can be 'openFile' or 'saveFile'. Default is 'openFile'. |
| 10 DOMString? type; |
| 11 }; |
| 8 callback GetDisplayPathCallback = void (DOMString displayPath); | 12 callback GetDisplayPathCallback = void (DOMString displayPath); |
| 9 callback FileEntryCallback = void ([instanceOf=fileEntry] object fileEntry); | 13 callback FileEntryCallback = void ([instanceOf=fileEntry] object fileEntry); |
| 10 | 14 |
| 11 interface Functions { | 15 interface Functions { |
| 12 static void getDisplayPath([instanceOf=FileEntry] object fileEntry, | 16 static void getDisplayPath([instanceOf=FileEntry] object fileEntry, |
| 13 GetDisplayPathCallback onSuccess); | 17 GetDisplayPathCallback callback); |
| 14 static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry, | 18 static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry, |
| 15 FileEntryCallback onSuccess); | 19 FileEntryCallback callback); |
| 20 static void chooseFile(optional ChooseFileOptions options, |
| 21 FileEntryCallback callback); |
| 16 }; | 22 }; |
| 17 }; | 23 }; |
| OLD | NEW |