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

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

Issue 260663002: AppListController now responsible for ensuring app list stays centered. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/app_list_controller.cc » ('j') | ash/wm/app_list_controller.cc » ('J')
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/shelf/shelf_icon_observer.h" 8 #include "ash/shelf/shelf_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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void TotalPagesChanged() OVERRIDE; 118 virtual void TotalPagesChanged() OVERRIDE;
119 virtual void SelectedPageChanged(int old_selected, int new_selected) OVERRIDE; 119 virtual void SelectedPageChanged(int old_selected, int new_selected) OVERRIDE;
120 virtual void TransitionStarted() OVERRIDE; 120 virtual void TransitionStarted() OVERRIDE;
121 virtual void TransitionChanged() OVERRIDE; 121 virtual void TransitionChanged() OVERRIDE;
122 122
123 scoped_ptr<app_list::PaginationModel> pagination_model_; 123 scoped_ptr<app_list::PaginationModel> pagination_model_;
124 124
125 // Whether we should show or hide app list widget. 125 // Whether we should show or hide app list widget.
126 bool is_visible_; 126 bool is_visible_;
127 127
128 // Whether the app list should remain centered.
129 bool is_centered_;
130
128 // The AppListView this class manages, owned by its widget. 131 // The AppListView this class manages, owned by its widget.
129 app_list::AppListView* view_; 132 app_list::AppListView* view_;
130 133
131 // Cached bounds of |view_| for snapping back animation after over-scroll. 134 // Cached bounds of |view_| for snapping back animation after over-scroll.
132 gfx::Rect view_bounds_; 135 gfx::Rect view_bounds_;
133 136
134 // Whether should schedule snap back animation. 137 // Whether should schedule snap back animation.
135 bool should_snap_back_; 138 bool should_snap_back_;
136 139
137 DISALLOW_COPY_AND_ASSIGN(AppListController); 140 DISALLOW_COPY_AND_ASSIGN(AppListController);
138 }; 141 };
139 142
140 } // namespace ash 143 } // namespace ash
141 144
142 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 145 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/app_list_controller.cc » ('j') | ash/wm/app_list_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698