| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // webstoreWidgetPrivate API. | 5 // webstoreWidgetPrivate API. |
| 6 // This is a private API used by the Chrome Webstore widget app on Chrome OS. | 6 // This is a private API used by the Chrome Webstore widget app on Chrome OS. |
| 7 [platforms=("chromeos")] | 7 [platforms=("chromeos"), use_movable_types=true] |
| 8 namespace webstoreWidgetPrivate { | 8 namespace webstoreWidgetPrivate { |
| 9 // The type of apps that should be shown in the Webstore widget. | 9 // The type of apps that should be shown in the Webstore widget. |
| 10 enum Type { | 10 enum Type { |
| 11 // Type that should be used to list printer provider apps. For this type, | 11 // Type that should be used to list printer provider apps. For this type, |
| 12 // options passed to |onShowWidget| should have |usbId| property set. | 12 // options passed to |onShowWidget| should have |usbId| property set. |
| 13 PRINTER_PROVIDER | 13 PRINTER_PROVIDER |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 // ID for a USB device. | 16 // ID for a USB device. |
| 17 dictionary UsbId { | 17 dictionary UsbId { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 interface Events { | 55 interface Events { |
| 56 // Event dispatched when a Chrome Webstore widget is requested to be shown. | 56 // Event dispatched when a Chrome Webstore widget is requested to be shown. |
| 57 // |options|: Options describing the set of apps that should be shown in the | 57 // |options|: Options describing the set of apps that should be shown in the |
| 58 // widget. | 58 // widget. |
| 59 static void onShowWidget(Options options); | 59 static void onShowWidget(Options options); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 }; | 62 }; |
| OLD | NEW |