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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: ash/public/cpp/remote_shelf_item_delegate.cc
diff --git a/ash/public/cpp/remote_shelf_item_delegate.cc b/ash/public/cpp/remote_shelf_item_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9b6ff1d4b6de51249afd60151ddcbc4e431451b9
--- /dev/null
+++ b/ash/public/cpp/remote_shelf_item_delegate.cc
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/public/cpp/remote_shelf_item_delegate.h"
+
+namespace ash {
+
+RemoteShelfItemDelegate::RemoteShelfItemDelegate(
+ const ShelfID& shelf_id,
+ mojom::ShelfItemDelegatePtr delegate)
+ : ShelfItemDelegate(shelf_id), delegate_(std::move(delegate)) {}
+
+RemoteShelfItemDelegate::~RemoteShelfItemDelegate() {}
+
+void RemoteShelfItemDelegate::ItemSelected(std::unique_ptr<ui::Event> event,
+ int64_t display_id,
+ ShelfLaunchSource source,
+ ItemSelectedCallback callback) {
+ delegate_->ItemSelected(std::move(event), display_id, source,
+ std::move(callback));
+}
+
+void RemoteShelfItemDelegate::ExecuteCommand(uint32_t command_id,
+ int32_t event_flags) {
+ delegate_->ExecuteCommand(command_id, event_flags);
+}
+
+void RemoteShelfItemDelegate::Close() {
+ delegate_->Close();
+}
+
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698