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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 ShelfLayoutManager* shelf_layout_manager() { return layout_manager_; } | 67 ShelfLayoutManager* shelf_layout_manager() { return layout_manager_; } |
68 | 68 |
69 ShelfModel* model() { return model_; } | 69 ShelfModel* model() { return model_; } |
70 | 70 |
71 void Init(); | 71 void Init(); |
72 | 72 |
73 void OnShelfAlignmentChanged(); | 73 void OnShelfAlignmentChanged(); |
74 void SchedulePaintForAllButtons(); | 74 void SchedulePaintForAllButtons(); |
75 | 75 |
76 // Returns the ideal bounds of the specified item, or an empty rect if id | 76 // Returns the ideal bounds of the specified item, or an empty rect if id |
77 // isn't know. | 77 // isn't know. If the item is in an overflow shelf, the overflow icon location |
| 78 // will be returned. |
78 gfx::Rect GetIdealBoundsOfItemIcon(ShelfID id); | 79 gfx::Rect GetIdealBoundsOfItemIcon(ShelfID id); |
79 | 80 |
80 // Repositions the icon for the specified item by the midpoint of the window. | 81 // Repositions the icon for the specified item by the midpoint of the window. |
81 void UpdatePanelIconPosition(ShelfID id, const gfx::Point& midpoint); | 82 void UpdatePanelIconPosition(ShelfID id, const gfx::Point& midpoint); |
82 | 83 |
83 void AddIconObserver(ShelfIconObserver* observer); | 84 void AddIconObserver(ShelfIconObserver* observer); |
84 void RemoveIconObserver(ShelfIconObserver* observer); | 85 void RemoveIconObserver(ShelfIconObserver* observer); |
85 | 86 |
86 // Returns true if we're showing a menu. | 87 // Returns true if we're showing a menu. |
87 bool IsShowingMenu() const; | 88 bool IsShowingMenu() const; |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 434 |
434 // True when ripped item from overflow bubble is entered into Shelf. | 435 // True when ripped item from overflow bubble is entered into Shelf. |
435 bool dragged_off_from_overflow_to_shelf_; | 436 bool dragged_off_from_overflow_to_shelf_; |
436 | 437 |
437 DISALLOW_COPY_AND_ASSIGN(ShelfView); | 438 DISALLOW_COPY_AND_ASSIGN(ShelfView); |
438 }; | 439 }; |
439 | 440 |
440 } // namespace ash | 441 } // namespace ash |
441 | 442 |
442 #endif // ASH_SHELF_SHELF_VIEW_H_ | 443 #endif // ASH_SHELF_SHELF_VIEW_H_ |
OLD | NEW |