| 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/app_list/app_list_export.h" | 9 #include "ui/app_list/app_list_export.h" |
| 10 #include "ui/app_list/views/search_result_container_view.h" | 10 #include "ui/app_list/views/search_result_container_view.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Called when the start page view is displayed. | 36 // Called when the start page view is displayed. |
| 37 void OnShow(); | 37 void OnShow(); |
| 38 | 38 |
| 39 // Called when the start page view is hidden (while the app list is still | 39 // Called when the start page view is hidden (while the app list is still |
| 40 // open). | 40 // open). |
| 41 void OnHide(); | 41 void OnHide(); |
| 42 | 42 |
| 43 // Overridden from views::View: | 43 // Overridden from views::View: |
| 44 void Layout() override; | 44 void Layout() override; |
| 45 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 45 | 46 |
| 46 // Overridden from SearchResultContainerView: | 47 // Overridden from SearchResultContainerView: |
| 47 void OnContainerSelected(bool from_bottom) override; | 48 void OnContainerSelected(bool from_bottom) override; |
| 48 | 49 |
| 49 // Returns search box bounds to use when the start page is active. | 50 // Returns search box bounds to use when the start page is active. |
| 50 gfx::Rect GetSearchBoxBounds() const; | 51 gfx::Rect GetSearchBoxBounds() const; |
| 51 | 52 |
| 52 // Updates whether the custom page clickzone is visible. | 53 // Updates whether the custom page clickzone is visible. |
| 53 void UpdateCustomPageClickzoneVisibility(); | 54 void UpdateCustomPageClickzoneVisibility(); |
| 54 | 55 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 | 72 |
| 72 std::vector<SearchResultTileItemView*> search_result_tile_views_; | 73 std::vector<SearchResultTileItemView*> search_result_tile_views_; |
| 73 AllAppsTileItemView* all_apps_button_; | 74 AllAppsTileItemView* all_apps_button_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(StartPageView); | 76 DISALLOW_COPY_AND_ASSIGN(StartPageView); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace app_list | 79 } // namespace app_list |
| 79 | 80 |
| 80 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ | 81 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ |
| OLD | NEW |