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

Side by Side Diff: ash/common/shelf/shelf_item_delegate.cc

Issue 2718563008: mash: Use mojo for ShelfItemDelegate and [app] MenuItem. (Closed)
Patch Set: Cleanup; fix ash_shell compile and a couple tests. Created 3 years, 9 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/common/shelf/shelf_item_delegate.h" 5 #include "ash/common/shelf/shelf_item_delegate.h"
6 6
7 #include "ui/display/types/display_constants.h" 7 #include "ui/display/types/display_constants.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
11 namespace {
12
13 // A callback that does nothing after shelf item selection handling.
14 void NoopCallback(ShelfAction, ShelfItemDelegate::MenuItemList) {}
15
16 } // namespace
17
11 ShelfItemDelegate::ShelfItemDelegate() {} 18 ShelfItemDelegate::ShelfItemDelegate() {}
12 ShelfItemDelegate::~ShelfItemDelegate() {} 19 ShelfItemDelegate::~ShelfItemDelegate() {}
13 20
14 ShelfAction ShelfItemDelegate::ItemSelectedBySource(ShelfLaunchSource source) { 21 void ShelfItemDelegate::ItemSelectedBySource(ShelfLaunchSource source) {
15 return ItemSelected(ui::ET_UNKNOWN, ui::EF_NONE, display::kInvalidDisplayId, 22 ItemSelected(nullptr, display::kInvalidDisplayId, source,
16 source); 23 base::Bind(&NoopCallback));
17 } 24 }
18 25
19 } // namespace ash 26 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698