OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Custom bindings for the fileSystem API. |
| 6 |
| 7 var chromeHidden = requireNative('chrome_hidden').GetChromeHidden(); |
| 8 |
| 9 chromeHidden.registerCustomHook('fileSystem', function(bindingsAPI) { |
| 10 bindingsAPI.apiFunctions.setUpdateArgumentsPostValidate( |
| 11 'getDisplayPath', function(fileEntry, callback) { |
| 12 var fileSystemName = fileEntry.filesystem.name; |
| 13 var relativePath = fileEntry.fullPath.slice(1); |
| 14 return [fileSystemName, relativePath, callback]; |
| 15 }); |
| 16 }); |
OLD | NEW |