| 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_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/launcher/background_animator.h" | 9 #include "ash/launcher/background_animator.h" |
| 10 #include "ash/launcher/launcher_types.h" | 10 #include "ash/launcher/launcher_types.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // Cycles the window focus linearly over the current launcher items. | 79 // Cycles the window focus linearly over the current launcher items. |
| 80 void CycleWindowLinear(CycleDirection direction); | 80 void CycleWindowLinear(CycleDirection direction); |
| 81 | 81 |
| 82 void AddIconObserver(LauncherIconObserver* observer); | 82 void AddIconObserver(LauncherIconObserver* observer); |
| 83 void RemoveIconObserver(LauncherIconObserver* observer); | 83 void RemoveIconObserver(LauncherIconObserver* observer); |
| 84 | 84 |
| 85 // Returns true if the Launcher is showing a context menu. | 85 // Returns true if the Launcher is showing a context menu. |
| 86 bool IsShowingMenu() const; | 86 bool IsShowingMenu() const; |
| 87 | 87 |
| 88 // Show the context menu for the Launcher. |
| 89 void ShowContextMenu(const gfx::Point& location); |
| 90 |
| 88 bool IsShowingOverflowBubble() const; | 91 bool IsShowingOverflowBubble() const; |
| 89 | 92 |
| 90 void SetVisible(bool visible) const; | 93 void SetVisible(bool visible) const; |
| 91 | 94 |
| 92 views::View* GetAppListButtonView() const; | 95 views::View* GetAppListButtonView() const; |
| 93 | 96 |
| 94 // Sets the bounds of the launcher widget, and the dimmer if visible. | 97 // Sets the bounds of the launcher widget, and the dimmer if visible. |
| 95 void SetWidgetBounds(const gfx::Rect bounds); | 98 void SetWidgetBounds(const gfx::Rect bounds); |
| 96 | 99 |
| 97 // Only to be called for testing. Retrieves the LauncherView. | 100 // Only to be called for testing. Retrieves the LauncherView. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 136 |
| 134 // Used to animate the background. | 137 // Used to animate the background. |
| 135 internal::BackgroundAnimator background_animator_; | 138 internal::BackgroundAnimator background_animator_; |
| 136 | 139 |
| 137 DISALLOW_COPY_AND_ASSIGN(Launcher); | 140 DISALLOW_COPY_AND_ASSIGN(Launcher); |
| 138 }; | 141 }; |
| 139 | 142 |
| 140 } // namespace ash | 143 } // namespace ash |
| 141 | 144 |
| 142 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 145 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
| OLD | NEW |