| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 // Update first launcher button's padding. This method adds padding to the | 168 // Update first launcher button's padding. This method adds padding to the |
| 169 // first button to include the leading inset. It needs to be called once on | 169 // first button to include the leading inset. It needs to be called once on |
| 170 // button creation and every time when shelf alignment is changed. | 170 // button creation and every time when shelf alignment is changed. |
| 171 void UpdateFirstButtonPadding(); | 171 void UpdateFirstButtonPadding(); |
| 172 | 172 |
| 173 // Overridden from views::View: | 173 // Overridden from views::View: |
| 174 virtual gfx::Size GetPreferredSize() OVERRIDE; | 174 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 175 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 175 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
| 176 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE; | 176 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE; |
| 177 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | |
| 178 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | |
| 179 | 177 |
| 180 // Overridden from LauncherModelObserver: | 178 // Overridden from LauncherModelObserver: |
| 181 virtual void LauncherItemAdded(int model_index) OVERRIDE; | 179 virtual void LauncherItemAdded(int model_index) OVERRIDE; |
| 182 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE; | 180 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE; |
| 183 virtual void LauncherItemChanged(int model_index, | 181 virtual void LauncherItemChanged(int model_index, |
| 184 const ash::LauncherItem& old_item) OVERRIDE; | 182 const ash::LauncherItem& old_item) OVERRIDE; |
| 185 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; | 183 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; |
| 186 | 184 |
| 187 // Overridden from LauncherButtonHost: | 185 // Overridden from LauncherButtonHost: |
| 188 virtual void MousePressedOnButton(views::View* view, | 186 virtual void MousePressedOnButton(views::View* view, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // alignment). | 266 // alignment). |
| 269 int leading_inset_; | 267 int leading_inset_; |
| 270 | 268 |
| 271 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 269 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 272 }; | 270 }; |
| 273 | 271 |
| 274 } // namespace internal | 272 } // namespace internal |
| 275 } // namespace ash | 273 } // namespace ash |
| 276 | 274 |
| 277 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 275 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| OLD | NEW |