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

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

Issue 297643002: Add tiles to the experimental app list start page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 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 | Annotate | Revision Log
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/app_list/app_list_view_delegate_observer.h"
9 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
10 #include "ui/views/view.h" 11 #include "ui/views/view.h"
11 12
12 namespace content { 13 namespace content {
13 class WebContents; 14 class WebContents;
14 } 15 }
15 16
16 namespace app_list { 17 namespace app_list {
17 18
18 class AppListMainView; 19 class AppListMainView;
20 class AppListModel;
21 class AppListViewDelegate;
22 class TileItemView;
19 23
20 // The start page for the experimental app list. 24 // The start page for the experimental app list.
21 class StartPageView : public views::View, public views::ButtonListener { 25 class StartPageView : public views::View,
26 public views::ButtonListener,
27 public AppListViewDelegateObserver {
22 public: 28 public:
23 StartPageView(AppListMainView* app_list_main_view, 29 StartPageView(AppListMainView* app_list_main_view,
24 content::WebContents* start_page_web_contents); 30 AppListViewDelegate* view_delegate);
25 virtual ~StartPageView(); 31 virtual ~StartPageView();
26 32
27 void Reset(); 33 void Reset();
28 34
29 private: 35 private:
36 TileItemView* GetTileViewAt(int index);
37
30 // Overridden from views::ButtonListener: 38 // Overridden from views::ButtonListener:
31 virtual void ButtonPressed(views::Button* sender, 39 virtual void ButtonPressed(views::Button* sender,
32 const ui::Event& event) OVERRIDE; 40 const ui::Event& event) OVERRIDE;
33 41
42 // Overridden from AppListViewDelegateObserver:
43 virtual void OnProfilesChanged() OVERRIDE;
44
34 // The parent view of ContentsView which is the parent of this view. 45 // The parent view of ContentsView which is the parent of this view.
35 AppListMainView* app_list_main_view_; 46 AppListMainView* app_list_main_view_;
36 47
48 AppListViewDelegate* view_delegate_; // Owned by AppListView.
49
37 views::View* instant_container_; // Owned by views hierarchy. 50 views::View* instant_container_; // Owned by views hierarchy.
51 views::View* tiles_container_; // Owned by views hierarchy.
38 52
39 DISALLOW_COPY_AND_ASSIGN(StartPageView); 53 DISALLOW_COPY_AND_ASSIGN(StartPageView);
40 }; 54 };
41 55
42 } // namespace app_list 56 } // namespace app_list
43 57
44 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ 58 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698