Chromium Code Reviews| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 void ActivateLauncherItem(int index); | 77 void ActivateLauncherItem(int index); |
| 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 // Show the context menu for the Launcher. | |
|
sky
2012/10/10 04:07:17
nit: newline between 87/88.
| |
| 88 void ShowContextMenu(const gfx::Point& location); | |
| 87 | 89 |
| 88 bool IsShowingOverflowBubble() const; | 90 bool IsShowingOverflowBubble() const; |
| 89 | 91 |
| 90 void SetVisible(bool visible) const; | 92 void SetVisible(bool visible) const; |
| 91 | 93 |
| 92 views::View* GetAppListButtonView() const; | 94 views::View* GetAppListButtonView() const; |
| 93 | 95 |
| 94 // Sets the bounds of the launcher widget, and the dimmer if visible. | 96 // Sets the bounds of the launcher widget, and the dimmer if visible. |
| 95 void SetWidgetBounds(const gfx::Rect bounds); | 97 void SetWidgetBounds(const gfx::Rect bounds); |
| 96 | 98 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 | 135 |
| 134 // Used to animate the background. | 136 // Used to animate the background. |
| 135 internal::BackgroundAnimator background_animator_; | 137 internal::BackgroundAnimator background_animator_; |
| 136 | 138 |
| 137 DISALLOW_COPY_AND_ASSIGN(Launcher); | 139 DISALLOW_COPY_AND_ASSIGN(Launcher); |
| 138 }; | 140 }; |
| 139 | 141 |
| 140 } // namespace ash | 142 } // namespace ash |
| 141 | 143 |
| 142 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 144 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
| OLD | NEW |