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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 // SearchResultView displays a SearchResult. | 36 // SearchResultView displays a SearchResult. |
37 class SearchResultView : public views::CustomButton, | 37 class SearchResultView : public views::CustomButton, |
38 public views::ButtonListener, | 38 public views::ButtonListener, |
39 public views::ContextMenuController, | 39 public views::ContextMenuController, |
40 public SearchResultObserver, | 40 public SearchResultObserver, |
41 public SearchResultActionsViewDelegate { | 41 public SearchResultActionsViewDelegate { |
42 public: | 42 public: |
43 // Internal class name. | 43 // Internal class name. |
44 static const char kViewClassName[]; | 44 static const char kViewClassName[]; |
45 | 45 |
46 SearchResultView(SearchResultListView* list_view); | 46 explicit SearchResultView(SearchResultListView* list_view); |
47 virtual ~SearchResultView(); | 47 virtual ~SearchResultView(); |
48 | 48 |
49 // Sets/gets SearchResult displayed by this view. | 49 // Sets/gets SearchResult displayed by this view. |
50 void SetResult(SearchResult* result); | 50 void SetResult(SearchResult* result); |
51 SearchResult* result() { return result_; } | 51 SearchResult* result() { return result_; } |
52 | 52 |
53 // Clears reference to SearchResult but don't schedule repaint. | 53 // Clears reference to SearchResult but don't schedule repaint. |
54 void ClearResultNoRepaint(); | 54 void ClearResultNoRepaint(); |
55 | 55 |
56 // Clears the selected action. | 56 // Clears the selected action. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ProgressBarView* progress_bar_; // Owned by views hierarchy. | 101 ProgressBarView* progress_bar_; // Owned by views hierarchy. |
102 | 102 |
103 scoped_ptr<views::MenuRunner> context_menu_runner_; | 103 scoped_ptr<views::MenuRunner> context_menu_runner_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(SearchResultView); | 105 DISALLOW_COPY_AND_ASSIGN(SearchResultView); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace app_list | 108 } // namespace app_list |
109 | 109 |
110 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 110 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
OLD | NEW |