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

Side by Side Diff: ash/public/cpp/shelf_item_delegate.cc

Issue 2833173002: mash: Support ShelfModel access in Chrome. (Closed)
Patch Set: Address comments; fix test failures. Created 3 years, 6 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
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698