| 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_SHELF_SHELF_VIEW_H_ | 5 #ifndef ASH_SHELF_SHELF_VIEW_H_ |
| 6 #define ASH_SHELF_SHELF_VIEW_H_ | 6 #define ASH_SHELF_SHELF_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // Invoked after the fading out animation for item deletion is ended. | 274 // Invoked after the fading out animation for item deletion is ended. |
| 275 void OnFadeOutAnimationEnded(); | 275 void OnFadeOutAnimationEnded(); |
| 276 | 276 |
| 277 // Fade in last visible item. | 277 // Fade in last visible item. |
| 278 void StartFadeInLastVisibleItem(); | 278 void StartFadeInLastVisibleItem(); |
| 279 | 279 |
| 280 // Updates the visible range of overflow items in |overflow_view|. | 280 // Updates the visible range of overflow items in |overflow_view|. |
| 281 void UpdateOverflowRange(ShelfView* overflow_view) const; | 281 void UpdateOverflowRange(ShelfView* overflow_view) const; |
| 282 | 282 |
| 283 // Overridden from views::View: | 283 // Overridden from views::View: |
| 284 gfx::Size GetPreferredSize() const override; | 284 gfx::Size CalculatePreferredSize() const override; |
| 285 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 285 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
| 286 FocusTraversable* GetPaneFocusTraversable() override; | 286 FocusTraversable* GetPaneFocusTraversable() override; |
| 287 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 287 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 288 void ViewHierarchyChanged( | 288 void ViewHierarchyChanged( |
| 289 const ViewHierarchyChangedDetails& details) override; | 289 const ViewHierarchyChangedDetails& details) override; |
| 290 | 290 |
| 291 // Overridden from ui::EventHandler: | 291 // Overridden from ui::EventHandler: |
| 292 void OnGestureEvent(ui::GestureEvent* event) override; | 292 void OnGestureEvent(ui::GestureEvent* event) override; |
| 293 | 293 |
| 294 // Overridden from ShelfModelObserver: | 294 // Overridden from ShelfModelObserver: |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; | 475 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; |
| 476 | 476 |
| 477 base::WeakPtrFactory<ShelfView> weak_factory_; | 477 base::WeakPtrFactory<ShelfView> weak_factory_; |
| 478 | 478 |
| 479 DISALLOW_COPY_AND_ASSIGN(ShelfView); | 479 DISALLOW_COPY_AND_ASSIGN(ShelfView); |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 } // namespace ash | 482 } // namespace ash |
| 483 | 483 |
| 484 #endif // ASH_SHELF_SHELF_VIEW_H_ | 484 #endif // ASH_SHELF_SHELF_VIEW_H_ |
| OLD | NEW |