| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 views::View* GetAppListButtonView() const; | 92 views::View* GetAppListButtonView() const; |
| 93 | 93 |
| 94 // Launch a 0-indexed launcher item in the Launcher. | 94 // Launch a 0-indexed launcher item in the Launcher. |
| 95 // A negative index launches the last launcher item in the launcher. | 95 // A negative index launches the last launcher item in the launcher. |
| 96 void LaunchAppIndexAt(int item_index); | 96 void LaunchAppIndexAt(int item_index); |
| 97 | 97 |
| 98 // Only to be called for testing. Retrieves the LauncherView. | 98 // Only to be called for testing. Retrieves the LauncherView. |
| 99 // TODO(sky): remove this! | 99 // TODO(sky): remove this! |
| 100 internal::LauncherView* GetLauncherViewForTest(); | 100 internal::LauncherView* GetLauncherViewForTest(); |
| 101 | 101 |
| 102 LauncherDelegate* delegate() { return delegate_; } | |
| 103 | |
| 104 ShelfWidget* shelf_widget() { return shelf_widget_; } | 102 ShelfWidget* shelf_widget() { return shelf_widget_; } |
| 105 | 103 |
| 106 // Set the bounds of the launcher view. | 104 // Set the bounds of the launcher view. |
| 107 void SetLauncherViewBounds(gfx::Rect bounds); | 105 void SetLauncherViewBounds(gfx::Rect bounds); |
| 108 gfx::Rect GetLauncherViewBounds() const; | 106 gfx::Rect GetLauncherViewBounds() const; |
| 109 | 107 |
| 110 // Returns ApplicationDragAndDropHost for this Launcher. | 108 // Returns ApplicationDragAndDropHost for this Launcher. |
| 111 app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList(); | 109 app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList(); |
| 112 | 110 |
| 113 private: | 111 private: |
| 114 // LauncherView used to display icons. | 112 // LauncherView used to display icons. |
| 115 internal::LauncherView* launcher_view_; | 113 internal::LauncherView* launcher_view_; |
| 116 | 114 |
| 117 ShelfAlignment alignment_; | 115 ShelfAlignment alignment_; |
| 118 | 116 |
| 119 LauncherDelegate* delegate_; | 117 LauncherDelegate* delegate_; |
| 120 | 118 |
| 121 ShelfWidget* shelf_widget_; | 119 ShelfWidget* shelf_widget_; |
| 122 | 120 |
| 123 DISALLOW_COPY_AND_ASSIGN(Launcher); | 121 DISALLOW_COPY_AND_ASSIGN(Launcher); |
| 124 }; | 122 }; |
| 125 | 123 |
| 126 } // namespace ash | 124 } // namespace ash |
| 127 | 125 |
| 128 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 126 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
| OLD | NEW |