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 syncFileSystem API. | 5 // Custom binding for the syncFileSystem API. |
6 | 6 |
7 var binding = require('binding').Binding.create('syncFileSystem'); | 7 var binding = require('binding').Binding.create('syncFileSystem'); |
8 | 8 |
9 var eventBindings = require('event_bindings'); | 9 var eventBindings = require('event_bindings'); |
10 var fileSystemNatives = requireNative('file_system_natives'); | 10 var fileSystemNatives = requireNative('file_system_natives'); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 var fileInfo = new Object(); | 97 var fileInfo = new Object(); |
98 fileInfo.fileEntry = fileEntry; | 98 fileInfo.fileEntry = fileEntry; |
99 fileInfo.status = args[1]; | 99 fileInfo.status = args[1]; |
100 if (fileInfo.status == "synced") { | 100 if (fileInfo.status == "synced") { |
101 fileInfo.action = args[2]; | 101 fileInfo.action = args[2]; |
102 fileInfo.direction = args[3]; | 102 fileInfo.direction = args[3]; |
103 } | 103 } |
104 dispatch([fileInfo]); | 104 dispatch([fileInfo]); |
105 }); | 105 }); |
106 | 106 |
107 exports.binding = binding.generate(); | 107 exports.$set('binding', binding.generate()); |
OLD | NEW |