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_VIEW_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ShelfLayoutManager* shelf_layout_manager); | 60 ShelfLayoutManager* shelf_layout_manager); |
61 virtual ~LauncherView(); | 61 virtual ~LauncherView(); |
62 | 62 |
63 LauncherTooltipManager* tooltip_manager() { return tooltip_.get(); } | 63 LauncherTooltipManager* tooltip_manager() { return tooltip_.get(); } |
64 | 64 |
65 LauncherModel* model() { return model_; } | 65 LauncherModel* model() { return model_; } |
66 | 66 |
67 void Init(); | 67 void Init(); |
68 | 68 |
69 void OnShelfAlignmentChanged(); | 69 void OnShelfAlignmentChanged(); |
| 70 void SchedulePaintForAllButtons(); |
70 | 71 |
71 // Returns the ideal bounds of the specified item, or an empty rect if id | 72 // Returns the ideal bounds of the specified item, or an empty rect if id |
72 // isn't know. | 73 // isn't know. |
73 gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id); | 74 gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id); |
74 | 75 |
75 // Repositions the icon for the specified item by the midpoint of the window. | 76 // Repositions the icon for the specified item by the midpoint of the window. |
76 void UpdatePanelIconPosition(LauncherID id, const gfx::Point& midpoint); | 77 void UpdatePanelIconPosition(LauncherID id, const gfx::Point& midpoint); |
77 | 78 |
78 void AddIconObserver(LauncherIconObserver* observer); | 79 void AddIconObserver(LauncherIconObserver* observer); |
79 void RemoveIconObserver(LauncherIconObserver* observer); | 80 void RemoveIconObserver(LauncherIconObserver* observer); |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // The view which gets replaced by our drag icon proxy. | 372 // The view which gets replaced by our drag icon proxy. |
372 views::View* drag_replaced_view_; | 373 views::View* drag_replaced_view_; |
373 | 374 |
374 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 375 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
375 }; | 376 }; |
376 | 377 |
377 } // namespace internal | 378 } // namespace internal |
378 } // namespace ash | 379 } // namespace ash |
379 | 380 |
380 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 381 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
OLD | NEW |