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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class APP_LIST_EXPORT StartPageView : public views::View { | 23 class APP_LIST_EXPORT StartPageView : public views::View { |
24 public: | 24 public: |
25 StartPageView(AppListMainView* app_list_main_view, | 25 StartPageView(AppListMainView* app_list_main_view, |
26 AppListViewDelegate* view_delegate); | 26 AppListViewDelegate* view_delegate); |
27 ~StartPageView() override; | 27 ~StartPageView() override; |
28 | 28 |
29 void Reset(); | 29 void Reset(); |
30 | 30 |
31 void UpdateForTesting(); | 31 void UpdateForTesting(); |
32 | 32 |
| 33 views::View* instant_container() const { return instant_container_; } |
33 const std::vector<SearchResultTileItemView*>& tile_views() const; | 34 const std::vector<SearchResultTileItemView*>& tile_views() const; |
34 TileItemView* all_apps_button() const; | 35 TileItemView* all_apps_button() const; |
35 | 36 |
36 // Called when the start page view is displayed. | 37 // Called when the start page view is displayed. |
37 void OnShow(); | 38 void OnShow(); |
38 | 39 |
39 // Overridden from views::View: | 40 // Overridden from views::View: |
40 void Layout() override; | 41 void Layout() override; |
41 bool OnKeyPressed(const ui::KeyEvent& event) override; | 42 bool OnKeyPressed(const ui::KeyEvent& event) override; |
42 | 43 |
(...skipping 21 matching lines...) Expand all Loading... |
64 views::View* search_box_spacer_view_; // Owned by views hierarchy. | 65 views::View* search_box_spacer_view_; // Owned by views hierarchy. |
65 views::View* instant_container_; // Owned by views hierarchy. | 66 views::View* instant_container_; // Owned by views hierarchy. |
66 StartPageTilesContainer* tiles_container_; // Owned by views hierarchy. | 67 StartPageTilesContainer* tiles_container_; // Owned by views hierarchy. |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(StartPageView); | 69 DISALLOW_COPY_AND_ASSIGN(StartPageView); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace app_list | 72 } // namespace app_list |
72 | 73 |
73 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ | 74 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ |
OLD | NEW |