| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "ui/compositor/layer_animation_observer.h" | 9 #include "ui/compositor/layer_animation_observer.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void OnImplicitAnimationsCompleted() override; | 61 void OnImplicitAnimationsCompleted() override; |
| 62 bool RequiresNotificationWhenAnimatorDestroyed() const override; | 62 bool RequiresNotificationWhenAnimatorDestroyed() const override; |
| 63 | 63 |
| 64 gfx::Size icon_size_; | 64 gfx::Size icon_size_; |
| 65 views::ImageView* icon_; // Owned by views hierarchy. | 65 views::ImageView* icon_; // Owned by views hierarchy. |
| 66 // Rect of the scaled down top item icon inside folder icon's ink bubble. | 66 // Rect of the scaled down top item icon inside folder icon's ink bubble. |
| 67 gfx::Rect scaled_rect_; | 67 gfx::Rect scaled_rect_; |
| 68 // true: opening folder; false: closing folder. | 68 // true: opening folder; false: closing folder. |
| 69 bool open_folder_; | 69 bool open_folder_; |
| 70 | 70 |
| 71 ObserverList<TopIconAnimationObserver> observers_; | 71 base::ObserverList<TopIconAnimationObserver> observers_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(TopIconAnimationView); | 73 DISALLOW_COPY_AND_ASSIGN(TopIconAnimationView); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace app_list | 76 } // namespace app_list |
| 77 | 77 |
| 78 #endif // UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H_ | 78 #endif // UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H_ |
| OLD | NEW |