| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 // Update first launcher button's padding. This method adds padding to the | 172 // 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 | 173 // 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. | 174 // button creation and every time when shelf alignment is changed. |
| 175 void UpdateFirstButtonPadding(); | 175 void UpdateFirstButtonPadding(); |
| 176 | 176 |
| 177 // Overridden from views::View: | 177 // Overridden from views::View: |
| 178 virtual gfx::Size GetPreferredSize() OVERRIDE; | 178 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 179 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 179 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
| 180 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE; | 180 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE; |
| 181 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | |
| 182 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | |
| 183 | 181 |
| 184 // Overridden from LauncherModelObserver: | 182 // Overridden from LauncherModelObserver: |
| 185 virtual void LauncherItemAdded(int model_index) OVERRIDE; | 183 virtual void LauncherItemAdded(int model_index) OVERRIDE; |
| 186 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE; | 184 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE; |
| 187 virtual void LauncherItemChanged(int model_index, | 185 virtual void LauncherItemChanged(int model_index, |
| 188 const ash::LauncherItem& old_item) OVERRIDE; | 186 const ash::LauncherItem& old_item) OVERRIDE; |
| 189 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; | 187 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; |
| 190 | 188 |
| 191 // Overridden from LauncherButtonHost: | 189 // Overridden from LauncherButtonHost: |
| 192 virtual void PointerPressedOnButton( | 190 virtual void PointerPressedOnButton( |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // alignment). | 275 // alignment). |
| 278 int leading_inset_; | 276 int leading_inset_; |
| 279 | 277 |
| 280 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 278 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 281 }; | 279 }; |
| 282 | 280 |
| 283 } // namespace internal | 281 } // namespace internal |
| 284 } // namespace ash | 282 } // namespace ash |
| 285 | 283 |
| 286 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 284 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| OLD | NEW |