OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "ash/public/cpp/shelf_item_delegate.h" | 5 #include "ash/public/cpp/shelf_item_delegate.h" |
6 | 6 |
7 namespace ash { | 7 namespace ash { |
8 | 8 |
9 ShelfItemDelegate::ShelfItemDelegate(const ash::ShelfID& shelf_id) | 9 ShelfItemDelegate::ShelfItemDelegate(const ash::ShelfID& shelf_id) |
10 : shelf_id_(shelf_id), image_set_by_controller_(false) {} | 10 : shelf_id_(shelf_id), binding_(this), image_set_by_controller_(false) {} |
11 | 11 |
12 ShelfItemDelegate::~ShelfItemDelegate() {} | 12 ShelfItemDelegate::~ShelfItemDelegate() {} |
13 | 13 |
| 14 mojom::ShelfItemDelegatePtr ShelfItemDelegate::CreateInterfacePtrAndBind() { |
| 15 return binding_.CreateInterfacePtrAndBind(); |
| 16 } |
| 17 |
14 MenuItemList ShelfItemDelegate::GetAppMenuItems(int event_flags) { | 18 MenuItemList ShelfItemDelegate::GetAppMenuItems(int event_flags) { |
15 return MenuItemList(); | 19 return MenuItemList(); |
16 } | 20 } |
17 | 21 |
18 AppWindowLauncherItemController* | 22 AppWindowLauncherItemController* |
19 ShelfItemDelegate::AsAppWindowLauncherItemController() { | 23 ShelfItemDelegate::AsAppWindowLauncherItemController() { |
20 return nullptr; | 24 return nullptr; |
21 } | 25 } |
22 | 26 |
23 } // namespace ash | 27 } // namespace ash |
OLD | NEW |