| 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 mash.shelf.mojom; | 5 module mash.shelf.mojom; |
| 6 | 6 |
| 7 import "mash/shelf/public/interfaces/shelf_constants.mojom"; | 7 import "mash/shelf/public/interfaces/shelf_constants.mojom"; |
| 8 import "skia/public/interfaces/bitmap.mojom"; | 8 import "skia/public/interfaces/bitmap.mojom"; |
| 9 | 9 |
| 10 // TODO(msw): Add support for multiple displays (with unified and multi-shelf). | 10 // TODO(msw): Add support for multiple displays (with unified and multi-shelf). |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 // ShelfObserver is notified on shelf changes; used to persist profile settings. | 25 // ShelfObserver is notified on shelf changes; used to persist profile settings. |
| 26 interface ShelfObserver { | 26 interface ShelfObserver { |
| 27 OnAlignmentChanged(Alignment alignment); | 27 OnAlignmentChanged(Alignment alignment); |
| 28 OnAutoHideBehaviorChanged(AutoHideBehavior auto_hide); | 28 OnAutoHideBehaviorChanged(AutoHideBehavior auto_hide); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 // ShelfItemDelegate handles command execution and observes shelf item changes. | 31 // ShelfItemDelegate handles command execution and observes shelf item changes. |
| 32 interface ShelfItemDelegate { | 32 interface ShelfItemDelegate { |
| 33 // Called when a pinned shelf item is invoked without an open window. |
| 34 LaunchItem(); |
| 35 |
| 33 // Called on invocation of a shelf item's context menu command. | 36 // Called on invocation of a shelf item's context menu command. |
| 34 ExecuteCommand(uint32 command_id, int32 event_flags); | 37 ExecuteCommand(uint32 command_id, int32 event_flags); |
| 35 | 38 |
| 36 // Called when a shelf item is pinned or unpinned. | 39 // Called when a shelf item is pinned or unpinned. |
| 37 ItemPinned(); | 40 ItemPinned(); |
| 38 ItemUnpinned(); | 41 ItemUnpinned(); |
| 39 | 42 |
| 40 // Called when a pinned shelf item is reordered. | 43 // Called when a pinned shelf item is reordered. |
| 41 // |order| is the index of the item on the shelf. | 44 // |order| is the index of the item on the shelf. |
| 42 ItemReordered(uint32 order); | 45 ItemReordered(uint32 order); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 62 | 65 |
| 63 // A app title, used for tooltips, etc. (eg. 'Foo Application'). | 66 // A app title, used for tooltips, etc. (eg. 'Foo Application'). |
| 64 string app_title; | 67 string app_title; |
| 65 | 68 |
| 66 // An icon image Bitmap, shown on the shelf. | 69 // An icon image Bitmap, shown on the shelf. |
| 67 skia.mojom.Bitmap image; | 70 skia.mojom.Bitmap image; |
| 68 | 71 |
| 69 // Additional context menu items (eg. 'New Incognito Window'). | 72 // Additional context menu items (eg. 'New Incognito Window'). |
| 70 array<ContextMenuItem>? context_menu_items; | 73 array<ContextMenuItem>? context_menu_items; |
| 71 }; | 74 }; |
| OLD | NEW |