| OLD | NEW |
| 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/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class WebContents; | 13 class WebContents; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace app_list { | 16 namespace app_list { |
| 17 | 17 |
| 18 class AppListMainView; | 18 class AppListMainView; |
| 19 class AppListModel; |
| 20 class AppListViewDelegate; |
| 19 | 21 |
| 20 // The start page for the experimental app list. | 22 // The start page for the experimental app list. |
| 21 class StartPageView : public views::View, public views::ButtonListener { | 23 class StartPageView : public views::View, public views::ButtonListener { |
| 22 public: | 24 public: |
| 23 StartPageView(AppListMainView* app_list_main_view, | 25 StartPageView(AppListMainView* app_list_main_view, |
| 24 content::WebContents* start_page_web_contents); | 26 AppListViewDelegate* view_delegate); |
| 25 virtual ~StartPageView(); | 27 virtual ~StartPageView(); |
| 26 | 28 |
| 27 void Reset(); | 29 void Reset(); |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 // Overridden from views::ButtonListener: | 32 // Overridden from views::ButtonListener: |
| 31 virtual void ButtonPressed(views::Button* sender, | 33 virtual void ButtonPressed(views::Button* sender, |
| 32 const ui::Event& event) OVERRIDE; | 34 const ui::Event& event) OVERRIDE; |
| 33 | 35 |
| 34 // The parent view of ContentsView which is the parent of this view. | 36 // The parent view of ContentsView which is the parent of this view. |
| 35 AppListMainView* app_list_main_view_; | 37 AppListMainView* app_list_main_view_; |
| 36 | 38 |
| 39 AppListModel* model_; // Owned by AppListSyncableService. |
| 40 |
| 37 views::View* instant_container_; // Owned by views hierarchy. | 41 views::View* instant_container_; // Owned by views hierarchy. |
| 42 views::View* tiles_container_; // Owned by views hierarchy. |
| 38 | 43 |
| 39 DISALLOW_COPY_AND_ASSIGN(StartPageView); | 44 DISALLOW_COPY_AND_ASSIGN(StartPageView); |
| 40 }; | 45 }; |
| 41 | 46 |
| 42 } // namespace app_list | 47 } // namespace app_list |
| 43 | 48 |
| 44 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ | 49 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ |
| OLD | NEW |