| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELF_SHELF_H_ | 5 #ifndef ASH_SHELF_SHELF_H_ |
| 6 #define ASH_SHELF_SHELF_H_ | 6 #define ASH_SHELF_SHELF_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // system. | 149 // system. |
| 150 gfx::Rect GetVisibleItemsBoundsInScreen() const; | 150 gfx::Rect GetVisibleItemsBoundsInScreen() const; |
| 151 | 151 |
| 152 // Returns ApplicationDragAndDropHost for this shelf. | 152 // Returns ApplicationDragAndDropHost for this shelf. |
| 153 app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList(); | 153 app_list::ApplicationDragAndDropHost* GetDragAndDropHostForAppList(); |
| 154 | 154 |
| 155 ShelfLockingManager* shelf_locking_manager_for_testing() { | 155 ShelfLockingManager* shelf_locking_manager_for_testing() { |
| 156 return &shelf_locking_manager_; | 156 return &shelf_locking_manager_; |
| 157 } | 157 } |
| 158 | 158 |
| 159 ShelfView* shelf_view_for_testing() { return shelf_view_; } |
| 160 |
| 159 private: | 161 private: |
| 160 friend class test::ShelfTestAPI; | 162 friend class test::ShelfTestAPI; |
| 161 | 163 |
| 162 // The shelf controller. Owned by the root window controller. | 164 // The shelf controller. Owned by the root window controller. |
| 163 WmShelf* wm_shelf_; | 165 WmShelf* wm_shelf_; |
| 164 ShelfWidget* shelf_widget_; | 166 ShelfWidget* shelf_widget_; |
| 165 ShelfView* shelf_view_; | 167 ShelfView* shelf_view_; |
| 166 ShelfLockingManager shelf_locking_manager_; | 168 ShelfLockingManager shelf_locking_manager_; |
| 167 | 169 |
| 168 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; | 170 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; |
| 169 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; | 171 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; |
| 170 | 172 |
| 171 DISALLOW_COPY_AND_ASSIGN(Shelf); | 173 DISALLOW_COPY_AND_ASSIGN(Shelf); |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 } // namespace ash | 176 } // namespace ash |
| 175 | 177 |
| 176 #endif // ASH_SHELF_SHELF_H_ | 178 #endif // ASH_SHELF_SHELF_H_ |
| OLD | NEW |