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

Unified Diff: ash/common/test/test_shelf_item_delegate.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/test/test_shelf_item_delegate.h ('k') | ash/common/test/test_system_tray_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_shelf_item_delegate.cc
diff --git a/ash/common/test/test_shelf_item_delegate.cc b/ash/common/test/test_shelf_item_delegate.cc
deleted file mode 100644
index 31e22c866ef00612b187d31703babed8c91fca5a..0000000000000000000000000000000000000000
--- a/ash/common/test/test_shelf_item_delegate.cc
+++ /dev/null
@@ -1,46 +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/common/test/test_shelf_item_delegate.h"
-
-#include "ash/common/wm_window.h"
-#include "ash/wm/window_util.h"
-
-namespace ash {
-namespace test {
-
-TestShelfItemDelegate::TestShelfItemDelegate(WmWindow* window)
- : window_(window) {}
-
-TestShelfItemDelegate::~TestShelfItemDelegate() {}
-
-ShelfAction TestShelfItemDelegate::ItemSelected(ui::EventType event_type,
- int event_flags,
- int64_t display_id,
- ShelfLaunchSource source) {
- if (window_) {
- if (window_->GetType() == ui::wm::WINDOW_TYPE_PANEL)
- wm::MoveWindowToDisplay(window_->aura_window(), display_id);
- window_->Show();
- window_->Activate();
- return SHELF_ACTION_WINDOW_ACTIVATED;
- }
- return SHELF_ACTION_NONE;
-}
-
-ShelfAppMenuItemList TestShelfItemDelegate::GetAppMenuItems(int event_flags) {
- // Return an empty item list to avoid showing an application menu.
- return ShelfAppMenuItemList();
-}
-
-void TestShelfItemDelegate::ExecuteCommand(uint32_t command_id,
- int 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/common/test/test_shelf_item_delegate.h ('k') | ash/common/test/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698