| 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_LAUNCHER_LAUNCHER_VIEW_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Returns the ideal bounds of the specified item, or an empty rect if id | 54 // Returns the ideal bounds of the specified item, or an empty rect if id |
| 55 // isn't know. | 55 // isn't know. |
| 56 gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id); | 56 gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id); |
| 57 | 57 |
| 58 void AddIconObserver(LauncherIconObserver* observer); | 58 void AddIconObserver(LauncherIconObserver* observer); |
| 59 void RemoveIconObserver(LauncherIconObserver* observer); | 59 void RemoveIconObserver(LauncherIconObserver* observer); |
| 60 | 60 |
| 61 // Returns true if we're showing a menu. | 61 // Returns true if we're showing a menu. |
| 62 bool IsShowingMenu() const; | 62 bool IsShowingMenu() const; |
| 63 | 63 |
| 64 views::View* GetAppListButtonView() const; |
| 65 |
| 64 // Overridden from FocusTraversable: | 66 // Overridden from FocusTraversable: |
| 65 virtual views::FocusSearch* GetFocusSearch() OVERRIDE; | 67 virtual views::FocusSearch* GetFocusSearch() OVERRIDE; |
| 66 virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE; | 68 virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE; |
| 67 virtual View* GetFocusTraversableParentView() OVERRIDE; | 69 virtual View* GetFocusTraversableParentView() OVERRIDE; |
| 68 | 70 |
| 69 private: | 71 private: |
| 70 friend class ash::test::LauncherViewTestAPI; | 72 friend class ash::test::LauncherViewTestAPI; |
| 71 | 73 |
| 72 class FadeOutAnimationDelegate; | 74 class FadeOutAnimationDelegate; |
| 73 class StartFadeAnimationDelegate; | 75 class StartFadeAnimationDelegate; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 199 |
| 198 ObserverList<LauncherIconObserver> observers_; | 200 ObserverList<LauncherIconObserver> observers_; |
| 199 | 201 |
| 200 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 202 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 201 }; | 203 }; |
| 202 | 204 |
| 203 } // namespace internal | 205 } // namespace internal |
| 204 } // namespace ash | 206 } // namespace ash |
| 205 | 207 |
| 206 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 208 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| OLD | NEW |