| OLD | NEW | 
|---|
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|