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

Side by Side Diff: ash/public/cpp/remote_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ash/public/cpp/remote_shelf_item_delegate.h"
6
7 namespace ash {
8
9 RemoteShelfItemDelegate::RemoteShelfItemDelegate(
10 const ShelfID& shelf_id,
11 mojom::ShelfItemDelegatePtr delegate)
12 : ShelfItemDelegate(shelf_id), delegate_(std::move(delegate)) {}
13
14 RemoteShelfItemDelegate::~RemoteShelfItemDelegate() {}
15
16 void RemoteShelfItemDelegate::ItemSelected(std::unique_ptr<ui::Event> event,
17 int64_t display_id,
18 ShelfLaunchSource source,
19 ItemSelectedCallback callback) {
20 delegate_->ItemSelected(std::move(event), display_id, source,
21 std::move(callback));
22 }
23
24 void RemoteShelfItemDelegate::ExecuteCommand(uint32_t command_id,
25 int32_t event_flags) {
26 delegate_->ExecuteCommand(command_id, event_flags);
27 }
28
29 void RemoteShelfItemDelegate::Close() {
30 delegate_->Close();
31 }
32
33 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698