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

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: 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..36a00ac7336dcce1fc65c6840162ae67a07ed364 100644
--- a/ui/app_list/views/start_page_view.h
+++ b/ui/app_list/views/start_page_view.h
@@ -30,26 +30,25 @@ class APP_LIST_EXPORT StartPageView : public views::View {
void UpdateForTesting();
+ void OpenCustomLauncherPage();
+
const std::vector<SearchResultTileItemView*>& tile_views() const;
TileItemView* all_apps_button() const;
// 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;
+
// 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;

Powered by Google App Engine
This is Rietveld 408576698