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

Side by Side Diff: ash/test/test_launcher_delegate.h

Issue 14533006: Drag and drop between app list and launcher - First patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
6 #define ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 6 #define ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 aura::RootWindow* root) OVERRIDE; 44 aura::RootWindow* root) OVERRIDE;
45 virtual ash::LauncherMenuModel* CreateApplicationMenu( 45 virtual ash::LauncherMenuModel* CreateApplicationMenu(
46 const LauncherItem& item, 46 const LauncherItem& item,
47 int event_flags) OVERRIDE; 47 int event_flags) OVERRIDE;
48 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; 48 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
49 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE; 49 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE;
50 virtual bool ShouldShowTooltip(const LauncherItem& item) OVERRIDE; 50 virtual bool ShouldShowTooltip(const LauncherItem& item) OVERRIDE;
51 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE; 51 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE;
52 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE; 52 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE;
53 virtual bool IsPerAppLauncher() OVERRIDE; 53 virtual bool IsPerAppLauncher() OVERRIDE;
54 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE;
55 virtual void PinAppWithID(const std::string& app_id) OVERRIDE;
56 virtual void UnpinAppsWithID(const std::string& app_id) OVERRIDE;
54 57
55 private: 58 private:
56 typedef std::map<aura::Window*, ash::LauncherID> WindowToID; 59 typedef std::map<aura::Window*, ash::LauncherID> WindowToID;
57 typedef std::set<aura::Window*> ObservedWindows; 60 typedef std::set<aura::Window*> ObservedWindows;
58 61
59 static TestLauncherDelegate* instance_; 62 static TestLauncherDelegate* instance_;
60 63
61 aura::Window* GetWindowByID(ash::LauncherID id); 64 aura::Window* GetWindowByID(ash::LauncherID id);
62 65
63 LauncherModel* model_; 66 LauncherModel* model_;
64 67
65 // Maps from window to the id we gave it. 68 // Maps from window to the id we gave it.
66 WindowToID window_to_id_; 69 WindowToID window_to_id_;
67 70
68 // Parent windows we are watching. 71 // Parent windows we are watching.
69 ObservedWindows observed_windows_; 72 ObservedWindows observed_windows_;
70 73
71 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); 74 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate);
72 }; 75 };
73 76
74 } // namespace test 77 } // namespace test
75 } // namespace ash 78 } // namespace ash
76 79
77 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 80 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698