| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 LauncherView* launcher_view_; | 53 LauncherView* launcher_view_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(TestAPI); | 55 DISALLOW_COPY_AND_ASSIGN(TestAPI); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 LauncherView(LauncherModel* model, LauncherDelegate* delegate); | 58 LauncherView(LauncherModel* model, LauncherDelegate* delegate); |
| 59 virtual ~LauncherView(); | 59 virtual ~LauncherView(); |
| 60 | 60 |
| 61 void Init(); | 61 void Init(); |
| 62 | 62 |
| 63 // Returns the ideal bounds of the specified item, or an empty rect if id |
| 64 // isn't know. |
| 65 gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id); |
| 66 |
| 63 private: | 67 private: |
| 64 class FadeOutAnimationDelegate; | 68 class FadeOutAnimationDelegate; |
| 65 class StartFadeAnimationDelegate; | 69 class StartFadeAnimationDelegate; |
| 66 | 70 |
| 67 struct IdealBounds { | 71 struct IdealBounds { |
| 68 gfx::Rect overflow_bounds; | 72 gfx::Rect overflow_bounds; |
| 69 }; | 73 }; |
| 70 | 74 |
| 71 // Sets the bounds of each view to its ideal bounds. | 75 // Sets the bounds of each view to its ideal bounds. |
| 72 void LayoutToIdealBounds(); | 76 void LayoutToIdealBounds(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Used to handle cycling among windows. | 185 // Used to handle cycling among windows. |
| 182 scoped_ptr<LauncherWindowCycler> cycler_; | 186 scoped_ptr<LauncherWindowCycler> cycler_; |
| 183 | 187 |
| 184 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 188 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 185 }; | 189 }; |
| 186 | 190 |
| 187 } // namespace internal | 191 } // namespace internal |
| 188 } // namespace ash | 192 } // namespace ash |
| 189 | 193 |
| 190 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 194 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| OLD | NEW |