Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Side by Side Diff: ui/app_list/views/top_icon_animation_view.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | ui/aura/env.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698