| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void RemoveIconObserver(LauncherIconObserver* observer); | 78 void RemoveIconObserver(LauncherIconObserver* observer); |
| 79 | 79 |
| 80 // Returns true if the Launcher is showing a context menu. | 80 // Returns true if the Launcher is showing a context menu. |
| 81 bool IsShowingMenu() const; | 81 bool IsShowingMenu() const; |
| 82 | 82 |
| 83 bool IsShowingOverflowBubble() const; | 83 bool IsShowingOverflowBubble() const; |
| 84 | 84 |
| 85 void SetVisible(bool visible) const; | 85 void SetVisible(bool visible) const; |
| 86 bool IsVisible() const; | 86 bool IsVisible() const; |
| 87 | 87 |
| 88 void SchedulePaint(); |
| 89 |
| 88 views::View* GetAppListButtonView() const; | 90 views::View* GetAppListButtonView() const; |
| 89 | 91 |
| 90 // Launch a 0-indexed launcher item in the Launcher. | 92 // Launch a 0-indexed launcher item in the Launcher. |
| 91 // A negative index launches the last launcher item in the launcher. | 93 // A negative index launches the last launcher item in the launcher. |
| 92 void LaunchAppIndexAt(int item_index); | 94 void LaunchAppIndexAt(int item_index); |
| 93 | 95 |
| 94 // Only to be called for testing. Retrieves the LauncherView. | 96 // Only to be called for testing. Retrieves the LauncherView. |
| 95 // TODO(sky): remove this! | 97 // TODO(sky): remove this! |
| 96 internal::LauncherView* GetLauncherViewForTest(); | 98 internal::LauncherView* GetLauncherViewForTest(); |
| 97 | 99 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 112 LauncherDelegate* delegate_; | 114 LauncherDelegate* delegate_; |
| 113 | 115 |
| 114 ShelfWidget* shelf_widget_; | 116 ShelfWidget* shelf_widget_; |
| 115 | 117 |
| 116 DISALLOW_COPY_AND_ASSIGN(Launcher); | 118 DISALLOW_COPY_AND_ASSIGN(Launcher); |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace ash | 121 } // namespace ash |
| 120 | 122 |
| 121 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 123 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
| OLD | NEW |