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; | |
28 class ImageView; | 27 class ImageView; |
29 class MenuRunner; | 28 class MenuRunner; |
30 class ProgressBar; | 29 class ProgressBar; |
31 } | 30 } |
32 | 31 |
33 namespace app_list { | 32 namespace app_list { |
34 namespace test { | 33 namespace test { |
35 class SearchResultListViewTest; | 34 class SearchResultListViewTest; |
36 } // namespace test | 35 } // namespace test |
37 | 36 |
38 class SearchResult; | 37 class SearchResult; |
39 class SearchResultListView; | 38 class SearchResultListView; |
40 class SearchResultViewDelegate; | |
41 class SearchResultActionsView; | 39 class SearchResultActionsView; |
42 | 40 |
43 // SearchResultView displays a SearchResult. | 41 // SearchResultView displays a SearchResult. |
44 class APP_LIST_EXPORT SearchResultView | 42 class APP_LIST_EXPORT SearchResultView |
45 : public views::CustomButton, | 43 : public views::CustomButton, |
46 public views::ButtonListener, | 44 public views::ButtonListener, |
47 public views::ContextMenuController, | 45 public views::ContextMenuController, |
48 public SearchResultObserver, | 46 public SearchResultObserver, |
49 NON_EXPORTED_BASE(public SearchResultActionsViewDelegate) { | 47 NON_EXPORTED_BASE(public SearchResultActionsViewDelegate) { |
50 public: | 48 public: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 views::ProgressBar* progress_bar_; // Owned by views hierarchy. | 120 views::ProgressBar* progress_bar_; // Owned by views hierarchy. |
123 | 121 |
124 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 122 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
125 | 123 |
126 DISALLOW_COPY_AND_ASSIGN(SearchResultView); | 124 DISALLOW_COPY_AND_ASSIGN(SearchResultView); |
127 }; | 125 }; |
128 | 126 |
129 } // namespace app_list | 127 } // namespace app_list |
130 | 128 |
131 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 129 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
OLD | NEW |