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

Unified Diff: trunk/src/ash/test/test_launcher_item_delegate.cc

Issue 25716004: Revert 226547 "Refactor LauncherItemController and LauncherItemD..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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: trunk/src/ash/test/test_launcher_item_delegate.cc
===================================================================
--- trunk/src/ash/test/test_launcher_item_delegate.cc (revision 226578)
+++ trunk/src/ash/test/test_launcher_item_delegate.cc (working copy)
@@ -1,52 +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_launcher_item_delegate.h"
-
-#include "ash/wm/window_util.h"
-#include "ui/aura/window.h"
-
-namespace ash {
-namespace test {
-
-TestLauncherItemDelegate::TestLauncherItemDelegate(aura::Window* window)
- : window_(window) {
-}
-
-TestLauncherItemDelegate::~TestLauncherItemDelegate() {
-}
-
-void TestLauncherItemDelegate::ItemSelected(const ui::Event& event) {
- if (window_) {
- if (window_->type() == aura::client::WINDOW_TYPE_PANEL)
- ash::wm::MoveWindowToEventRoot(window_, event);
- window_->Show();
- ash::wm::ActivateWindow(window_);
- }
-}
-
-base::string16 TestLauncherItemDelegate::GetTitle() {
- return window_ ? window_->title() : base::string16();
-}
-
-ui::MenuModel* TestLauncherItemDelegate::CreateContextMenu(
- aura::RootWindow* root_window) {
- return NULL;
-}
-
-ash::LauncherMenuModel* TestLauncherItemDelegate::CreateApplicationMenu(
- int event_flags) {
- return NULL;
-}
-
-bool TestLauncherItemDelegate::IsDraggable() {
- return true;
-}
-
-bool TestLauncherItemDelegate::ShouldShowTooltip() {
- return true;
-}
-
-} // namespace test
-} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698