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

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

Issue 2982453002: New AppListView Scroll Behavior. (Closed)
Patch Set: Created 3 years, 5 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 (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 UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool is_fullscreen() const { 127 bool is_fullscreen() const {
128 return app_list_state_ == FULLSCREEN_ALL_APPS || 128 return app_list_state_ == FULLSCREEN_ALL_APPS ||
129 app_list_state_ == FULLSCREEN_SEARCH; 129 app_list_state_ == FULLSCREEN_SEARCH;
130 } 130 }
131 131
132 AppListState app_list_state() const { return app_list_state_; } 132 AppListState app_list_state() const { return app_list_state_; }
133 133
134 // Called when maximize mode starts and ends. 134 // Called when maximize mode starts and ends.
135 void OnMaximizeModeChanged(bool started); 135 void OnMaximizeModeChanged(bool started);
136 136
137 // Changes |app_list_state_| from |PEEKING| to |FULLSCREEN_ALL_APPS|.
138 bool HandleScroll(const ui::Event* event);
139
137 private: 140 private:
138 friend class test::AppListViewTestApi; 141 friend class test::AppListViewTestApi;
139 142
140 void InitContents(gfx::NativeView parent, int initial_apps_page); 143 void InitContents(gfx::NativeView parent, int initial_apps_page);
141 144
142 void InitChildWidgets(); 145 void InitChildWidgets();
143 146
144 // Initializes the widget for fullscreen mode. 147 // Initializes the widget for fullscreen mode.
145 void InitializeFullscreen(gfx::NativeView parent, int initial_apps_page); 148 void InitializeFullscreen(gfx::NativeView parent, int initial_apps_page);
146 149
(...skipping 15 matching lines...) Expand all
162 void OnBeforeBubbleWidgetInit(views::Widget::InitParams* params, 165 void OnBeforeBubbleWidgetInit(views::Widget::InitParams* params,
163 views::Widget* widget) const override; 166 views::Widget* widget) const override;
164 int GetDialogButtons() const override; 167 int GetDialogButtons() const override;
165 168
166 // Overridden from views::WidgetDelegateView: 169 // Overridden from views::WidgetDelegateView:
167 views::View* GetInitiallyFocusedView() override; 170 views::View* GetInitiallyFocusedView() override;
168 bool WidgetHasHitTestMask() const override; 171 bool WidgetHasHitTestMask() const override;
169 void GetWidgetHitTestMask(gfx::Path* mask) const override; 172 void GetWidgetHitTestMask(gfx::Path* mask) const override;
170 173
171 // Overridden from ui::EventHandler: 174 // Overridden from ui::EventHandler:
175 void OnScrollEvent(ui::ScrollEvent* event) override;
172 void OnMouseEvent(ui::MouseEvent* event) override; 176 void OnMouseEvent(ui::MouseEvent* event) override;
173 void OnGestureEvent(ui::GestureEvent* event) override; 177 void OnGestureEvent(ui::GestureEvent* event) override;
174 178
175 // Overridden from views::WidgetObserver: 179 // Overridden from views::WidgetObserver:
176 void OnWidgetDestroying(views::Widget* widget) override; 180 void OnWidgetDestroying(views::Widget* widget) override;
177 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; 181 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override;
178 182
179 // Overridden from SpeechUIModelObserver: 183 // Overridden from SpeechUIModelObserver:
180 void OnSpeechRecognitionStateChanged( 184 void OnSpeechRecognitionStateChanged(
181 SpeechRecognitionState new_state) override; 185 SpeechRecognitionState new_state) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 225
222 // For UMA and testing. If non-null, triggered when the app list is painted. 226 // For UMA and testing. If non-null, triggered when the app list is painted.
223 base::Closure next_paint_callback_; 227 base::Closure next_paint_callback_;
224 228
225 DISALLOW_COPY_AND_ASSIGN(AppListView); 229 DISALLOW_COPY_AND_ASSIGN(AppListView);
226 }; 230 };
227 231
228 } // namespace app_list 232 } // namespace app_list
229 233
230 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 234 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698