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

Unified Diff: ash/test/test_launcher_delegate.h

Issue 23606016: Refactor LauncherItemController and LauncherItemDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for LauncherTest and observing LauncherModel in DelegateManager Created 7 years, 3 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/test/test_launcher_delegate.h
diff --git a/ash/test/test_launcher_delegate.h b/ash/test/test_launcher_delegate.h
index e084a1aafca198e4e1fa68aba9779ecd682f0f11..8529db944a609132a2e64104ce0a20a3864edca3 100644
--- a/ash/test/test_launcher_delegate.h
+++ b/ash/test/test_launcher_delegate.h
@@ -9,7 +9,6 @@
#include <set>
#include "ash/launcher/launcher_delegate.h"
-#include "ash/launcher/launcher_item_delegate.h"
#include "base/compiler_specific.h"
#include "ui/aura/window_observer.h"
@@ -22,7 +21,6 @@ namespace test {
// Test implementation of LauncherDelegate.
// Tests may create icons for windows by calling AddLauncherItem
class TestLauncherDelegate : public LauncherDelegate,
- public LauncherItemDelegate,
public aura::WindowObserver {
public:
explicit TestLauncherDelegate(LauncherModel* model);
@@ -49,26 +47,12 @@ class TestLauncherDelegate : public LauncherDelegate,
virtual bool IsAppPinned(const std::string& app_id) OVERRIDE;
virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE;
- // LauncherItemDelegate implementation.
- virtual void ItemSelected(const LauncherItem& item,
- const ui::Event& event) OVERRIDE;
- virtual base::string16 GetTitle(const LauncherItem& item) OVERRIDE;
- virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item,
- aura::RootWindow* root) OVERRIDE;
- virtual ash::LauncherMenuModel* CreateApplicationMenu(
- const LauncherItem& item,
- int event_flags) OVERRIDE;
- virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE;
- virtual bool ShouldShowTooltip(const LauncherItem& item) OVERRIDE;
-
private:
typedef std::map<aura::Window*, ash::LauncherID> WindowToID;
typedef std::set<aura::Window*> ObservedWindows;
static TestLauncherDelegate* instance_;
- aura::Window* GetWindowByID(ash::LauncherID id);
-
LauncherModel* model_;
// Maps from window to the id we gave it.

Powered by Google App Engine
This is Rietveld 408576698