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

Side by Side Diff: ash/wm/app_list_controller.h

Issue 11418312: app_list: Improve initial icon loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, stop timer when showing widget because no pending icon loads Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/app_list_controller.cc » ('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 (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_WM_APP_LIST_CONTROLLER_H_ 5 #ifndef ASH_WM_APP_LIST_CONTROLLER_H_
6 #define ASH_WM_APP_LIST_CONTROLLER_H_ 6 #define ASH_WM_APP_LIST_CONTROLLER_H_
7 7
8 #include "ash/launcher/launcher_icon_observer.h" 8 #include "ash/launcher/launcher_icon_observer.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool IsVisible() const; 52 bool IsVisible() const;
53 53
54 // Returns target visibility. This differs from IsVisible() if an animation 54 // Returns target visibility. This differs from IsVisible() if an animation
55 // is ongoing. 55 // is ongoing.
56 bool GetTargetVisibility() const { return is_visible_; } 56 bool GetTargetVisibility() const { return is_visible_; }
57 57
58 // Returns app list window or NULL if it is not visible. 58 // Returns app list window or NULL if it is not visible.
59 aura::Window* GetWindow(); 59 aura::Window* GetWindow();
60 60
61 private: 61 private:
62 // Sets app list view. If we are in visible mode, start showing animation. 62 // Sets the app list view and attempts to show it.
63 // Otherwise, we just close it.
64 void SetView(app_list::AppListView* view); 63 void SetView(app_list::AppListView* view);
65 64
66 // Forgets the view. 65 // Forgets the view.
67 void ResetView(); 66 void ResetView();
68 67
69 // Starts show/hide animation. 68 // Starts show/hide animation.
70 void ScheduleAnimation(); 69 void ScheduleAnimation();
71 70
72 void ProcessLocatedEvent(ui::LocatedEvent* event); 71 void ProcessLocatedEvent(ui::LocatedEvent* event);
73 72
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Whether should schedule snap back animation. 115 // Whether should schedule snap back animation.
117 bool should_snap_back_; 116 bool should_snap_back_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(AppListController); 118 DISALLOW_COPY_AND_ASSIGN(AppListController);
120 }; 119 };
121 120
122 } // namespace internal 121 } // namespace internal
123 } // namespace ash 122 } // namespace ash
124 123
125 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 124 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698