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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void SetShelfViewBounds(gfx::Rect bounds); | 107 void SetShelfViewBounds(gfx::Rect bounds); |
108 gfx::Rect GetShelfViewBounds() const; | 108 gfx::Rect GetShelfViewBounds() const; |
109 | 109 |
110 // Returns rectangle bounding all visible launcher items. Used screen | 110 // Returns rectangle bounding all visible launcher items. Used screen |
111 // coordinate system. | 111 // coordinate system. |
112 gfx::Rect GetVisibleItemsBoundsInScreen() const; | 112 gfx::Rect GetVisibleItemsBoundsInScreen() const; |
113 | 113 |
114 // Returns ApplicationDragAndDropHost for this Launcher. | 114 // Returns ApplicationDragAndDropHost for this Launcher. |
115 app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList(); | 115 app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList(); |
116 | 116 |
| 117 // Record the current shelf alignment state to the named UMA_HISTOGRAM. |
| 118 void RecordCurrentAlignmentForUMAHistogram(const char* histogram_name); |
| 119 |
117 private: | 120 private: |
118 friend class ash::test::LauncherTestAPI; | 121 friend class ash::test::LauncherTestAPI; |
119 | 122 |
120 // ShelfView used to display icons. | 123 // ShelfView used to display icons. |
121 internal::ShelfView* shelf_view_; | 124 internal::ShelfView* shelf_view_; |
122 | 125 |
123 ShelfAlignment alignment_; | 126 ShelfAlignment alignment_; |
124 | 127 |
125 LauncherDelegate* delegate_; | 128 LauncherDelegate* delegate_; |
126 | 129 |
127 ShelfWidget* shelf_widget_; | 130 ShelfWidget* shelf_widget_; |
128 | 131 |
129 DISALLOW_COPY_AND_ASSIGN(Launcher); | 132 DISALLOW_COPY_AND_ASSIGN(Launcher); |
130 }; | 133 }; |
131 | 134 |
132 } // namespace ash | 135 } // namespace ash |
133 | 136 |
134 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 137 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
OLD | NEW |