| 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 19 matching lines...) Expand all Loading... |
| 30 void AddLauncherItem(aura::Window* window, LauncherItemStatus status); | 30 void AddLauncherItem(aura::Window* window, LauncherItemStatus status); |
| 31 | 31 |
| 32 static TestLauncherDelegate* instance() { return instance_; } | 32 static TestLauncherDelegate* instance() { return instance_; } |
| 33 | 33 |
| 34 // WindowObserver implementation | 34 // WindowObserver implementation |
| 35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; | 35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; |
| 36 | 36 |
| 37 // LauncherDelegate implementation. | 37 // LauncherDelegate implementation. |
| 38 virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE; | 38 virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE; |
| 39 virtual void ItemClicked(const LauncherItem& item, | 39 virtual void ItemClicked(const LauncherItem& item, |
| 40 int event_flags) OVERRIDE; | 40 const ui::Event& event) OVERRIDE; |
| 41 virtual int GetBrowserShortcutResourceId() OVERRIDE; | 41 virtual int GetBrowserShortcutResourceId() OVERRIDE; |
| 42 virtual string16 GetTitle(const LauncherItem& item) OVERRIDE; | 42 virtual string16 GetTitle(const LauncherItem& item) OVERRIDE; |
| 43 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item, | 43 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item, |
| 44 aura::RootWindow* root) OVERRIDE; | 44 aura::RootWindow* root) OVERRIDE; |
| 45 virtual ui::MenuModel* CreateApplicationMenu( | 45 virtual ui::MenuModel* CreateApplicationMenu( |
| 46 const LauncherItem& item) OVERRIDE; | 46 const LauncherItem& item) OVERRIDE; |
| 47 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; | 47 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; |
| 48 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE; | 48 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 63 // Parent windows we are watching. | 63 // Parent windows we are watching. |
| 64 ObservedWindows observed_windows_; | 64 ObservedWindows observed_windows_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); | 66 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace test | 69 } // namespace test |
| 70 } // namespace ash | 70 } // namespace ash |
| 71 | 71 |
| 72 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ | 72 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |