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 // Custom binding for the fileSystem API. | 5 // Custom binding for the fileSystem API. |
6 | 6 |
7 var binding = apiBridge || require('binding').Binding.create('fileSystem'); | 7 var binding = apiBridge || require('binding').Binding.create('fileSystem'); |
8 var sendRequest = bindingUtil ? | 8 var sendRequest = bindingUtil ? |
9 $Function.bind(bindingUtil.sendRequest, bindingUtil) : | 9 $Function.bind(bindingUtil.sendRequest, bindingUtil) : |
10 require('sendRequest').sendRequest; | 10 require('sendRequest').sendRequest; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 fileSystem.chooseFile = function() { | 101 fileSystem.chooseFile = function() { |
102 console.log("chrome.fileSystem.chooseFile is deprecated"); | 102 console.log("chrome.fileSystem.chooseFile is deprecated"); |
103 console.log("Please use chrome.fileSystem.chooseEntry instead"); | 103 console.log("Please use chrome.fileSystem.chooseEntry instead"); |
104 $Function.apply(fileSystem.chooseEntry, this, arguments); | 104 $Function.apply(fileSystem.chooseEntry, this, arguments); |
105 }; | 105 }; |
106 }); | 106 }); |
107 | 107 |
108 if (!apiBridge) | 108 if (!apiBridge) |
109 exports.$set('binding', binding.generate()); | 109 exports.$set('binding', binding.generate()); |
OLD | NEW |