| 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_SEARCH_RESULT_TILE_ITEM_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/app_list/search_result_observer.h" | 9 #include "ui/app_list/search_result_observer.h" |
| 10 #include "ui/app_list/views/tile_item_view.h" | 10 #include "ui/app_list/views/tile_item_view.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void OnIconChanged() override; | 41 void OnIconChanged() override; |
| 42 void OnBadgeIconChanged() override; | 42 void OnBadgeIconChanged() override; |
| 43 void OnResultDestroying() override; | 43 void OnResultDestroying() override; |
| 44 | 44 |
| 45 // views::ContextMenuController overrides: | 45 // views::ContextMenuController overrides: |
| 46 void ShowContextMenuForView(views::View* source, | 46 void ShowContextMenuForView(views::View* source, |
| 47 const gfx::Point& point, | 47 const gfx::Point& point, |
| 48 ui::MenuSourceType source_type) override; | 48 ui::MenuSourceType source_type) override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Overridden from views::View: |
| 52 void Layout() override; |
| 53 gfx::Size CalculatePreferredSize() const override; |
| 54 |
| 51 SearchResultContainerView* result_container_; // Parent view | 55 SearchResultContainerView* result_container_; // Parent view |
| 52 | 56 |
| 53 // Owned by the model provided by the AppListViewDelegate. | 57 // Owned by the model provided by the AppListViewDelegate. |
| 54 SearchResult* item_; | 58 SearchResult* item_; |
| 55 | 59 |
| 56 AppListViewDelegate* view_delegate_; | 60 AppListViewDelegate* view_delegate_; |
| 57 | 61 |
| 62 const bool is_fullscreen_app_list_enabled_; |
| 63 |
| 58 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 64 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
| 59 | 65 |
| 60 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); | 66 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); |
| 61 }; | 67 }; |
| 62 | 68 |
| 63 } // namespace app_list | 69 } // namespace app_list |
| 64 | 70 |
| 65 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ | 71 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
| OLD | NEW |