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

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

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_START_PAGE_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_
6 #define UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Overridden from views::View: 44 // Overridden from views::View:
45 void Layout() override; 45 void Layout() override;
46 bool OnKeyPressed(const ui::KeyEvent& event) override; 46 bool OnKeyPressed(const ui::KeyEvent& event) override;
47 47
48 bool OnMousePressed(const ui::MouseEvent& event) override; 48 bool OnMousePressed(const ui::MouseEvent& event) override;
49 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; 49 bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
50 void OnGestureEvent(ui::GestureEvent* event) override; 50 void OnGestureEvent(ui::GestureEvent* event) override;
51 void OnScrollEvent(ui::ScrollEvent* event) override; 51 void OnScrollEvent(ui::ScrollEvent* event) override;
52 52
53
54 private: 53 private:
55 class StartPageTilesContainer; 54 class StartPageTilesContainer;
56 55
57 void InitInstantContainer(); 56 void InitInstantContainer();
57
58 void MaybeOpenCustomLauncherPage(); 58 void MaybeOpenCustomLauncherPage();
59 59
60 void SetCustomLauncherPageSelected(bool selected); 60 void SetCustomLauncherPageSelected(bool selected);
61 61
62 TileItemView* GetTileItemView(size_t index); 62 TileItemView* GetTileItemView(size_t index);
63 63
64 // The parent view of ContentsView which is the parent of this view. 64 // The parent view of ContentsView which is the parent of this view.
65 AppListMainView* app_list_main_view_; 65 AppListMainView* app_list_main_view_;
66 66
67 AppListViewDelegate* view_delegate_; // Owned by AppListView. 67 AppListViewDelegate* view_delegate_; // Owned by AppListView.
68 68
69 views::View* search_box_spacer_view_; // Owned by views hierarchy. 69 views::View* search_box_spacer_view_; // Owned by views hierarchy.
70 views::View* instant_container_; // Owned by views hierarchy. 70 views::View* instant_container_; // Owned by views hierarchy.
71 CustomLauncherPageBackgroundView* 71 CustomLauncherPageBackgroundView*
72 custom_launcher_page_background_; // Owned by view hierarchy. 72 custom_launcher_page_background_; // Owned by view hierarchy.
73 StartPageTilesContainer* tiles_container_; // Owned by views hierarchy. 73 StartPageTilesContainer* tiles_container_; // Owned by views hierarchy.
74 74
75 DISALLOW_COPY_AND_ASSIGN(StartPageView); 75 DISALLOW_COPY_AND_ASSIGN(StartPageView);
76 }; 76 };
77 77
78 } // namespace app_list 78 } // namespace app_list
79 79
80 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ 80 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698