OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "ui/app_list/search_result_observer.h" | 17 #include "ui/app_list/search_result_observer.h" |
18 #include "ui/app_list/views/search_result_actions_view_delegate.h" | 18 #include "ui/app_list/views/search_result_actions_view_delegate.h" |
19 #include "ui/views/context_menu_controller.h" | 19 #include "ui/views/context_menu_controller.h" |
20 #include "ui/views/controls/button/custom_button.h" | 20 #include "ui/views/controls/button/custom_button.h" |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class RenderText; | 23 class RenderText; |
24 } | 24 } |
25 | 25 |
26 namespace views { | 26 namespace views { |
27 class ImageButton; | 27 class ImageButton; |
28 class ImageView; | 28 class ImageView; |
29 class MenuRunner; | 29 class MenuRunner; |
| 30 class ProgressBar; |
30 } | 31 } |
31 | 32 |
32 namespace app_list { | 33 namespace app_list { |
33 namespace test { | 34 namespace test { |
34 class SearchResultListViewTest; | 35 class SearchResultListViewTest; |
35 } // namespace test | 36 } // namespace test |
36 | 37 |
37 class ProgressBarView; | |
38 class SearchResult; | 38 class SearchResult; |
39 class SearchResultListView; | 39 class SearchResultListView; |
40 class SearchResultViewDelegate; | 40 class SearchResultViewDelegate; |
41 class SearchResultActionsView; | 41 class SearchResultActionsView; |
42 | 42 |
43 // SearchResultView displays a SearchResult. | 43 // SearchResultView displays a SearchResult. |
44 class APP_LIST_EXPORT SearchResultView | 44 class APP_LIST_EXPORT SearchResultView |
45 : public views::CustomButton, | 45 : public views::CustomButton, |
46 public views::ButtonListener, | 46 public views::ButtonListener, |
47 public views::ContextMenuController, | 47 public views::ContextMenuController, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 bool is_last_result_; | 112 bool is_last_result_; |
113 | 113 |
114 // Parent list view. Owned by views hierarchy. | 114 // Parent list view. Owned by views hierarchy. |
115 SearchResultListView* list_view_; | 115 SearchResultListView* list_view_; |
116 | 116 |
117 views::ImageView* icon_; // Owned by views hierarchy. | 117 views::ImageView* icon_; // Owned by views hierarchy. |
118 views::ImageView* badge_icon_; // Owned by views hierarchy. | 118 views::ImageView* badge_icon_; // Owned by views hierarchy. |
119 std::unique_ptr<gfx::RenderText> title_text_; | 119 std::unique_ptr<gfx::RenderText> title_text_; |
120 std::unique_ptr<gfx::RenderText> details_text_; | 120 std::unique_ptr<gfx::RenderText> details_text_; |
121 SearchResultActionsView* actions_view_; // Owned by the views hierarchy. | 121 SearchResultActionsView* actions_view_; // Owned by the views hierarchy. |
122 ProgressBarView* progress_bar_; // Owned by views hierarchy. | 122 views::ProgressBar* progress_bar_; // Owned by views hierarchy. |
123 | 123 |
124 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 124 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(SearchResultView); | 126 DISALLOW_COPY_AND_ASSIGN(SearchResultView); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace app_list | 129 } // namespace app_list |
130 | 130 |
131 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 131 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
OLD | NEW |