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

Side by Side Diff: chrome/common/extensions/docs/examples/api/fileSystemProvider/cloudExtension/background.js

Issue 360673004: Demonstrate the functionality of the File System Provider API for archives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add fileSystemProvider API extension example. Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/fileSystemProvider/cloudExtension/manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 'use strict'; 5 'use strict';
6 6
7 // Fake data similar to a file system structure. 7 // Fake data similar to a file system structure.
8 var MODIFICATION_DATE = new Date(); 8 var MODIFICATION_DATE = new Date();
9 var SHORT_CONTENTS = 'Just another example.'; 9 var SHORT_CONTENTS = 'Just another example.';
10 var LONGER_CONTENTS = 'It works!\nEverything gets displayed correctly.'; 10 var LONGER_CONTENTS = 'It works!\nEverything gets displayed correctly.';
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 chrome.fileSystemProvider.onGetMetadataRequested.addListener( 110 chrome.fileSystemProvider.onGetMetadataRequested.addListener(
111 onGetMetadataRequested); 111 onGetMetadataRequested);
112 chrome.fileSystemProvider.onReadDirectoryRequested.addListener( 112 chrome.fileSystemProvider.onReadDirectoryRequested.addListener(
113 onReadDirectoryRequested); 113 onReadDirectoryRequested);
114 chrome.fileSystemProvider.onOpenFileRequested.addListener( 114 chrome.fileSystemProvider.onOpenFileRequested.addListener(
115 onOpenFileRequested); 115 onOpenFileRequested);
116 chrome.fileSystemProvider.onCloseFileRequested.addListener( 116 chrome.fileSystemProvider.onCloseFileRequested.addListener(
117 onCloseFileRequested); 117 onCloseFileRequested);
118 chrome.fileSystemProvider.onReadFileRequested.addListener( 118 chrome.fileSystemProvider.onReadFileRequested.addListener(
119 onReadFileRequested); 119 onReadFileRequested);
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/fileSystemProvider/cloudExtension/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698