Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/renderer/resources/extensions/file_system_custom_bindings.js

Issue 10544069: Change platform app api getDisplayPath to take FileEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_resources.grd ('k') | chrome/test/data/extensions/platform_apps/get_display_path/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698