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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // dragged to. | 156 // dragged to. |
157 std::pair<int, int> GetDragRange(int index); | 157 std::pair<int, int> GetDragRange(int index); |
158 | 158 |
159 // If there is a drag operation in progress it's canceled. If |modified_index| | 159 // If there is a drag operation in progress it's canceled. If |modified_index| |
160 // is valid, the new position of the corresponding item is returned. | 160 // is valid, the new position of the corresponding item is returned. |
161 int CancelDrag(int modified_index); | 161 int CancelDrag(int modified_index); |
162 | 162 |
163 // Common setup done for all children. | 163 // Common setup done for all children. |
164 void ConfigureChildView(views::View* view); | 164 void ConfigureChildView(views::View* view); |
165 | 165 |
166 // Returns the items whose icons are not shown because they don't fit. | |
167 void GetOverflowItems(std::vector<LauncherItem>* items); | |
168 | |
169 // Shows the overflow menu. | 166 // Shows the overflow menu. |
170 void ShowOverflowBubble(); | 167 void ShowOverflowBubble(); |
171 | 168 |
172 // Update first launcher button's padding. This method adds padding to the | 169 // Update first launcher button's padding. This method adds padding to the |
173 // first button to include the leading inset. It needs to be called once on | 170 // first button to include the leading inset. It needs to be called once on |
174 // button creation and every time when shelf alignment is changed. | 171 // button creation and every time when shelf alignment is changed. |
175 void UpdateFirstButtonPadding(); | 172 void UpdateFirstButtonPadding(); |
176 | 173 |
177 // Overridden from views::View: | 174 // Overridden from views::View: |
178 virtual gfx::Size GetPreferredSize() OVERRIDE; | 175 virtual gfx::Size GetPreferredSize() OVERRIDE; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // alignment). | 272 // alignment). |
276 int leading_inset_; | 273 int leading_inset_; |
277 | 274 |
278 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 275 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
279 }; | 276 }; |
280 | 277 |
281 } // namespace internal | 278 } // namespace internal |
282 } // namespace ash | 279 } // namespace ash |
283 | 280 |
284 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 281 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
OLD | NEW |