OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module ash.mojom; | 5 module ash.mojom; |
6 | 6 |
7 import "mojo/common/string16.mojom"; | 7 import "mojo/common/string16.mojom"; |
8 import "skia/public/interfaces/bitmap.mojom"; | 8 import "skia/public/interfaces/bitmap.mojom"; |
9 import "ui/events/mojo/event.mojom"; | 9 import "ui/events/mojo/event.mojom"; |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 UNKNOWN, // The item was launched from outside the app list. | 54 UNKNOWN, // The item was launched from outside the app list. |
55 APP_LIST, // The item was launched from a generic app list view. | 55 APP_LIST, // The item was launched from a generic app list view. |
56 APP_LIST_SEARCH, // The item was launched from an app list search view. | 56 APP_LIST_SEARCH, // The item was launched from an app list search view. |
57 }; | 57 }; |
58 | 58 |
59 // The Shelf controller allows clients (eg. Chrome) to control the ash shelf. | 59 // The Shelf controller allows clients (eg. Chrome) to control the ash shelf. |
60 interface ShelfController { | 60 interface ShelfController { |
61 // Observers are immediately notified of the current shelf states when added. | 61 // Observers are immediately notified of the current shelf states when added. |
62 AddObserver(associated ShelfObserver observer); | 62 AddObserver(associated ShelfObserver observer); |
63 | 63 |
64 // Set the shelf alignment and auto-hide behavior. See WmShelf for details. | 64 // Set the shelf alignment and auto-hide behavior. See Shelf for details. |
65 SetAlignment(ShelfAlignment alignment, int64 display_id); | 65 SetAlignment(ShelfAlignment alignment, int64 display_id); |
66 SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide, int64 display_id); | 66 SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide, int64 display_id); |
67 | 67 |
68 // Pin and unpin items on the shelf, or update shelf item images. | 68 // Pin and unpin items on the shelf, or update shelf item images. |
69 PinItem(ShelfItem item, associated ShelfItemDelegate delegate); | 69 PinItem(ShelfItem item, associated ShelfItemDelegate delegate); |
70 UnpinItem(string app_id); | 70 UnpinItem(string app_id); |
71 SetItemImage(string app_id, skia.mojom.Bitmap image); | 71 SetItemImage(string app_id, skia.mojom.Bitmap image); |
72 }; | 72 }; |
73 | 73 |
74 // ShelfObserver is notified on shelf changes; used to persist profile settings. | 74 // ShelfObserver is notified on shelf changes; used to persist profile settings. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 struct ShelfItem { | 131 struct ShelfItem { |
132 ShelfItemType type; // The type of the shelf item. | 132 ShelfItemType type; // The type of the shelf item. |
133 skia.mojom.Bitmap image; // An icon image Bitmap, shown on the shelf. | 133 skia.mojom.Bitmap image; // An icon image Bitmap, shown on the shelf. |
134 ShelfItemStatus status; // The running/closed/etc. status of the item. | 134 ShelfItemStatus status; // The running/closed/etc. status of the item. |
135 ShelfID shelf_id; // The id for the shelf item and its windows. | 135 ShelfID shelf_id; // The id for the shelf item and its windows. |
136 mojo.common.mojom.String16 title; // The title to display for tooltips, etc. | 136 mojo.common.mojom.String16 title; // The title to display for tooltips, etc. |
137 bool shows_tooltip; // Whether the tooltip should be shown on hover. | 137 bool shows_tooltip; // Whether the tooltip should be shown on hover. |
138 bool pinned_by_policy; // Whether the item is pinned by policy preferences, | 138 bool pinned_by_policy; // Whether the item is pinned by policy preferences, |
139 // the user cannot un-pin these items. | 139 // the user cannot un-pin these items. |
140 }; | 140 }; |
OLD | NEW |