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

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

Issue 913133007: Allow scroll events to open custom launcher pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: host coordinates Created 5 years, 10 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/start_page_view.h
diff --git a/ui/app_list/views/start_page_view.h b/ui/app_list/views/start_page_view.h
index 0022229e33e51bc852b6069ee6c084656cf71b43..8a6f0baa3e71e4bec090389885e2dfd2524e0f49 100644
--- a/ui/app_list/views/start_page_view.h
+++ b/ui/app_list/views/start_page_view.h
@@ -36,24 +36,23 @@ class APP_LIST_EXPORT StartPageView : public views::View {
// Called when the start page view is displayed.
void OnShow();
- // Called when the start page view is hidden (while the app list is still
- // open).
- void OnHide();
-
// Overridden from views::View:
void Layout() override;
bool OnKeyPressed(const ui::KeyEvent& event) override;
+ bool OnMousePressed(const ui::MouseEvent& event) override;
+ bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
+ void OnGestureEvent(ui::GestureEvent* event) override;
+ void OnScrollEvent(ui::ScrollEvent* event) override;
+
// Returns search box bounds to use when the start page is active.
gfx::Rect GetSearchBoxBounds() const;
- // Updates whether the custom page clickzone is visible.
- void UpdateCustomPageClickzoneVisibility();
-
private:
class StartPageTilesContainer;
void InitInstantContainer();
+ void MaybeOpenCustomLauncherPage();
TileItemView* GetTileItemView(size_t index);

Powered by Google App Engine
This is Rietveld 408576698