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

Unified Diff: ash/test/test_shelf_item_delegate.cc

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Address comment. Created 3 years, 8 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
« no previous file with comments | « ash/test/test_shelf_item_delegate.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shelf_item_delegate.cc
diff --git a/ash/test/test_shelf_item_delegate.cc b/ash/test/test_shelf_item_delegate.cc
deleted file mode 100644
index ce22dc13ebbe24341a01f766da68b59e74c6fa74..0000000000000000000000000000000000000000
--- a/ash/test/test_shelf_item_delegate.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 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/test/test_shelf_item_delegate.h"
-
-#include "ash/wm/window_util.h"
-#include "ash/wm_window.h"
-
-namespace ash {
-namespace test {
-
-TestShelfItemDelegate::TestShelfItemDelegate(WmWindow* window)
- : ShelfItemDelegate(AppLaunchId()), window_(window) {}
-
-TestShelfItemDelegate::~TestShelfItemDelegate() {}
-
-void TestShelfItemDelegate::ItemSelected(std::unique_ptr<ui::Event> event,
- int64_t display_id,
- ShelfLaunchSource source,
- const ItemSelectedCallback& callback) {
- if (window_) {
- if (window_->GetType() == ui::wm::WINDOW_TYPE_PANEL)
- wm::MoveWindowToDisplay(window_->aura_window(), display_id);
- window_->Show();
- window_->Activate();
- callback.Run(SHELF_ACTION_WINDOW_ACTIVATED, base::nullopt);
- return;
- }
- callback.Run(SHELF_ACTION_NONE, base::nullopt);
-}
-
-void TestShelfItemDelegate::ExecuteCommand(uint32_t command_id,
- int32_t event_flags) {
- // This delegate does not support showing an application menu.
- NOTIMPLEMENTED();
-}
-
-void TestShelfItemDelegate::Close() {}
-
-} // namespace test
-} // namespace ash
« no previous file with comments | « ash/test/test_shelf_item_delegate.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698