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

Unified Diff: ui/app_list/views/app_list_view.h

Issue 2982453002: New AppListView Scroll Behavior. (Closed)
Patch Set: Addressed comments 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 side-by-side diff with in-line comments
Download patch
Index: ui/app_list/views/app_list_view.h
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
index 2cf5740616aa96b6b6f68ac6768f951d4d9f1406..de7ee30c91394baf60f03f14145fa60c3fe1615c 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -134,6 +134,9 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView,
// Called when maximize mode starts and ends.
void OnMaximizeModeChanged(bool started);
+ // Changes |app_list_state_| from |PEEKING| to |FULLSCREEN_ALL_APPS|.
+ bool HandleScroll(const ui::Event* event);
+
private:
friend class test::AppListViewTestApi;
@@ -169,6 +172,7 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDialogDelegateView,
void GetWidgetHitTestMask(gfx::Path* mask) const override;
// Overridden from ui::EventHandler:
+ void OnScrollEvent(ui::ScrollEvent* event) override;
void OnMouseEvent(ui::MouseEvent* event) override;
void OnGestureEvent(ui::GestureEvent* event) override;

Powered by Google App Engine
This is Rietveld 408576698