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

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

Issue 220393003: Add a unit test for resetting the app list on a reshow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trent_whole_app_list_unit_test
Patch Set: Created 6 years, 8 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
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/app_list/app_list_export.h"
9 #include "ui/compositor/layer_animation_observer.h" 10 #include "ui/compositor/layer_animation_observer.h"
10 #include "ui/views/view.h" 11 #include "ui/views/view.h"
11 12
12 namespace views { 13 namespace views {
13 class ImageView; 14 class ImageView;
14 } 15 }
15 16
16 namespace app_list { 17 namespace app_list {
17 18
18 // Observer for top icon animation completion. 19 // Observer for top icon animation completion.
19 class TopIconAnimationObserver { 20 class APP_LIST_EXPORT TopIconAnimationObserver {
20 public: 21 public:
21 // Called when top icon animation completes. 22 // Called when top icon animation completes.
22 virtual void OnTopIconAnimationsComplete() {} 23 virtual void OnTopIconAnimationsComplete() {}
23 24
24 protected: 25 protected:
25 TopIconAnimationObserver() {} 26 TopIconAnimationObserver() {}
26 virtual ~TopIconAnimationObserver() {} 27 virtual ~TopIconAnimationObserver() {}
27 28
28 private: 29 private:
29 DISALLOW_COPY_AND_ASSIGN(TopIconAnimationObserver); 30 DISALLOW_COPY_AND_ASSIGN(TopIconAnimationObserver);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool open_folder_; 69 bool open_folder_;
69 70
70 ObserverList<TopIconAnimationObserver> observers_; 71 ObserverList<TopIconAnimationObserver> observers_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(TopIconAnimationView); 73 DISALLOW_COPY_AND_ASSIGN(TopIconAnimationView);
73 }; 74 };
74 75
75 } // namespace app_list 76 } // namespace app_list
76 77
77 #endif // UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H 78 #endif // UI_APP_LIST_VIEWS_TOP_ICON_ANIMATION_VIEW_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698