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/launcher_types.h" | 9 #include "ash/launcher/launcher_types.h" |
10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void RemoveIconObserver(LauncherIconObserver* observer); | 82 void RemoveIconObserver(LauncherIconObserver* observer); |
83 | 83 |
84 // Returns true if the Launcher is showing a context menu. | 84 // Returns true if the Launcher is showing a context menu. |
85 bool IsShowingMenu() const; | 85 bool IsShowingMenu() const; |
86 | 86 |
87 bool IsShowingOverflowBubble() const; | 87 bool IsShowingOverflowBubble() const; |
88 | 88 |
89 void SetVisible(bool visible) const; | 89 void SetVisible(bool visible) const; |
90 bool IsVisible() const; | 90 bool IsVisible() const; |
91 | 91 |
| 92 void SchedulePaint(); |
| 93 |
92 views::View* GetAppListButtonView() const; | 94 views::View* GetAppListButtonView() const; |
93 | 95 |
94 // Launch a 0-indexed launcher item in the Launcher. | 96 // Launch a 0-indexed launcher item in the Launcher. |
95 // A negative index launches the last launcher item in the launcher. | 97 // A negative index launches the last launcher item in the launcher. |
96 void LaunchAppIndexAt(int item_index); | 98 void LaunchAppIndexAt(int item_index); |
97 | 99 |
98 // Only to be called for testing. Retrieves the LauncherView. | 100 // Only to be called for testing. Retrieves the LauncherView. |
99 // TODO(sky): remove this! | 101 // TODO(sky): remove this! |
100 internal::LauncherView* GetLauncherViewForTest(); | 102 internal::LauncherView* GetLauncherViewForTest(); |
101 | 103 |
(...skipping 17 matching lines...) Expand all Loading... |
119 LauncherDelegate* delegate_; | 121 LauncherDelegate* delegate_; |
120 | 122 |
121 ShelfWidget* shelf_widget_; | 123 ShelfWidget* shelf_widget_; |
122 | 124 |
123 DISALLOW_COPY_AND_ASSIGN(Launcher); | 125 DISALLOW_COPY_AND_ASSIGN(Launcher); |
124 }; | 126 }; |
125 | 127 |
126 } // namespace ash | 128 } // namespace ash |
127 | 129 |
128 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 130 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
OLD | NEW |