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

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

Issue 23068021: Remove PerBrowser launcher, reland step 1 of 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « ash/shell/launcher_delegate_impl.cc ('k') | ash/test/test_launcher_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item, 44 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item,
45 aura::RootWindow* root) OVERRIDE; 45 aura::RootWindow* root) OVERRIDE;
46 virtual ash::LauncherMenuModel* CreateApplicationMenu( 46 virtual ash::LauncherMenuModel* CreateApplicationMenu(
47 const LauncherItem& item, 47 const LauncherItem& item,
48 int event_flags) OVERRIDE; 48 int event_flags) OVERRIDE;
49 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; 49 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
50 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE; 50 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE;
51 virtual bool ShouldShowTooltip(const LauncherItem& item) OVERRIDE; 51 virtual bool ShouldShowTooltip(const LauncherItem& item) OVERRIDE;
52 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE; 52 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE;
53 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE; 53 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE;
54 virtual bool IsPerAppLauncher() OVERRIDE;
55 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE; 54 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE;
56 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; 55 virtual void PinAppWithID(const std::string& app_id) OVERRIDE;
57 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; 56 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE;
58 virtual void UnpinAppsWithID(const std::string& app_id) OVERRIDE; 57 virtual void UnpinAppsWithID(const std::string& app_id) OVERRIDE;
59 58
60 private: 59 private:
61 typedef std::map<aura::Window*, ash::LauncherID> WindowToID; 60 typedef std::map<aura::Window*, ash::LauncherID> WindowToID;
62 typedef std::set<aura::Window*> ObservedWindows; 61 typedef std::set<aura::Window*> ObservedWindows;
63 62
64 static TestLauncherDelegate* instance_; 63 static TestLauncherDelegate* instance_;
65 64
66 aura::Window* GetWindowByID(ash::LauncherID id); 65 aura::Window* GetWindowByID(ash::LauncherID id);
67 66
68 LauncherModel* model_; 67 LauncherModel* model_;
69 68
70 // Maps from window to the id we gave it. 69 // Maps from window to the id we gave it.
71 WindowToID window_to_id_; 70 WindowToID window_to_id_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); 72 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate);
74 }; 73 };
75 74
76 } // namespace test 75 } // namespace test
77 } // namespace ash 76 } // namespace ash
78 77
79 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 78 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/launcher_delegate_impl.cc ('k') | ash/test/test_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698