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

Side by Side Diff: chrome/common/extensions/api/file_browser_private.idl

Issue 490643005: Files.app: Start to use DeviceEventRouter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // fileBrowserPrivate API. 5 // fileBrowserPrivate API.
6 // This is a private API used by the file browser of ChromeOS. 6 // This is a private API used by the file browser of ChromeOS.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_browser_pr ivate_api_functions.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_browser_pr ivate_api_functions.h"]
9 namespace fileBrowserPrivate { 9 namespace fileBrowserPrivate {
10 // Type of the mounted volume. 10 // Type of the mounted volume.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Open inspector for foreground page and bring focus to the console. 91 // Open inspector for foreground page and bring focus to the console.
92 console, 92 console,
93 // Open inspector for foreground page in inspect element mode. 93 // Open inspector for foreground page in inspect element mode.
94 element, 94 element,
95 // Open inspector for background page. 95 // Open inspector for background page.
96 background 96 background
97 }; 97 };
98 98
99 // Device event type. 99 // Device event type.
100 enum DeviceEventType { 100 enum DeviceEventType {
101 // Device is added. 101 // Device scan is started.
102 added, 102 scan_started,
103 // If the device is disabled by preference, the disabled event is published 103 // Device scan is cancelled.
104 // instead of the added event. 104 scan_cancelled,
105 // If the device is disabled by preference.
105 disabled, 106 disabled,
106 // Device is added, but scan for the device is canceled. The event is
107 // published after the added event.
108 scan_canceled,
109 // Device is removed. 107 // Device is removed.
110 removed, 108 removed,
111 // Device is hard unplugged. 109 // Device is hard unplugged.
112 hard_unplugged, 110 hard_unplugged,
113 // Format started. 111 // Format started.
114 format_start, 112 format_start,
115 // Format succeeded. 113 // Format succeeded.
116 format_success, 114 format_success,
117 // Format failed. 115 // Format failed.
118 format_fail 116 format_fail
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Is the event raised for mounting or unmounting. 290 // Is the event raised for mounting or unmounting.
293 MountCompletedEventType eventType; 291 MountCompletedEventType eventType;
294 292
295 // Event type that tells listeners if mount was successful or an error 293 // Event type that tells listeners if mount was successful or an error
296 // occurred. It also specifies the error. 294 // occurred. It also specifies the error.
297 MountCompletedStatus status; 295 MountCompletedStatus status;
298 296
299 // Metadata of the mounted volume. 297 // Metadata of the mounted volume.
300 VolumeMetadata volumeMetadata; 298 VolumeMetadata volumeMetadata;
301 299
302 // Whether it is remount or not. 300 // Whether the volume event should be notified or not.
303 boolean isRemounting;
304
305 // Whether the volume should be opend by Files.app or not.
306 boolean shouldNotify; 301 boolean shouldNotify;
307 }; 302 };
308 303
309 // Payload data for file transfer status updates. 304 // Payload data for file transfer status updates.
310 dictionary FileTransferStatus { 305 dictionary FileTransferStatus {
311 // URL of file that is being transfered. 306 // URL of file that is being transfered.
312 DOMString fileUrl; 307 DOMString fileUrl;
313 308
314 // File transfer progress state. 309 // File transfer progress state.
315 TransferState transferState; 310 TransferState transferState;
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 static void onDriveSyncError(DriveSyncErrorEvent event); 816 static void onDriveSyncError(DriveSyncErrorEvent event);
822 817
823 // Dispatched when a profile is added. 818 // Dispatched when a profile is added.
824 static void onProfileAdded(); 819 static void onProfileAdded();
825 820
826 // Dispatched when any window moves another desktop. 821 // Dispatched when any window moves another desktop.
827 // TODO(hirono): Add information which window is moved. 822 // TODO(hirono): Add information which window is moved.
828 static void onDesktopChanged(); 823 static void onDesktopChanged();
829 }; 824 };
830 }; 825 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698