OLD | NEW |
(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 |
OLD | NEW |