| 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 28 matching lines...) Expand all Loading... |
| 39 virtual void OnWindowHierarchyChanging( | 39 virtual void OnWindowHierarchyChanging( |
| 40 const HierarchyChangeParams& params) OVERRIDE; | 40 const HierarchyChangeParams& params) OVERRIDE; |
| 41 | 41 |
| 42 // LauncherDelegate implementation. | 42 // LauncherDelegate implementation. |
| 43 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; | 43 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; |
| 44 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE; | 44 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE; |
| 45 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE; | 45 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE; |
| 46 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE; | 46 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE; |
| 47 virtual const std::string& GetAppIDForLauncherID(LauncherID id) OVERRIDE; | 47 virtual const std::string& GetAppIDForLauncherID(LauncherID id) OVERRIDE; |
| 48 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; | 48 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; |
| 49 virtual bool CanPin() const OVERRIDE; |
| 49 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; | 50 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; |
| 50 virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE; | 51 virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE; |
| 51 | 52 |
| 52 // LauncherItemDelegate implementation. | 53 // LauncherItemDelegate implementation. |
| 53 virtual void ItemSelected(const LauncherItem& item, | 54 virtual void ItemSelected(const LauncherItem& item, |
| 54 const ui::Event& event) OVERRIDE; | 55 const ui::Event& event) OVERRIDE; |
| 55 virtual base::string16 GetTitle(const LauncherItem& item) OVERRIDE; | 56 virtual base::string16 GetTitle(const LauncherItem& item) OVERRIDE; |
| 56 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item, | 57 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item, |
| 57 aura::RootWindow* root) OVERRIDE; | 58 aura::RootWindow* root) OVERRIDE; |
| 58 virtual ash::LauncherMenuModel* CreateApplicationMenu( | 59 virtual ash::LauncherMenuModel* CreateApplicationMenu( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 74 // Maps from window to the id we gave it. | 75 // Maps from window to the id we gave it. |
| 75 WindowToID window_to_id_; | 76 WindowToID window_to_id_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace test | 81 } // namespace test |
| 81 } // namespace ash | 82 } // namespace ash |
| 82 | 83 |
| 83 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ | 84 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |