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

Side by Side Diff: extensions/common/api/system_storage.idl

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « extensions/common/api/system_network.idl ('k') | extensions/common/api/web_request.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 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 // Use the <code>chrome.system.storage</code> API to query storage device 5 // Use the <code>chrome.system.storage</code> API to query storage device
6 // information and be notified when a removable storage device is attached and 6 // information and be notified when a removable storage device is attached and
7 // detached. 7 // detached.
8 namespace system.storage { 8 [use_movable_types=true] namespace system.storage {
9 9
10 enum StorageUnitType { 10 enum StorageUnitType {
11 // The storage has fixed media, e.g. hard disk or SSD. 11 // The storage has fixed media, e.g. hard disk or SSD.
12 fixed, 12 fixed,
13 // The storage is removable, e.g. USB flash drive. 13 // The storage is removable, e.g. USB flash drive.
14 removable, 14 removable,
15 // The storage type is unknown. 15 // The storage type is unknown.
16 unknown 16 unknown
17 }; 17 };
18 18
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 interface Events { 75 interface Events {
76 // Fired when a new removable storage is attached to the system. 76 // Fired when a new removable storage is attached to the system.
77 static void onAttached(StorageUnitInfo info); 77 static void onAttached(StorageUnitInfo info);
78 78
79 // Fired when a removable storage is detached from the system. 79 // Fired when a removable storage is detached from the system.
80 static void onDetached(DOMString id); 80 static void onDetached(DOMString id);
81 }; 81 };
82 82
83 }; 83 };
OLDNEW
« no previous file with comments | « extensions/common/api/system_network.idl ('k') | extensions/common/api/web_request.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698