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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual gfx::Size GetPreferredSize() OVERRIDE; | 59 virtual gfx::Size GetPreferredSize() OVERRIDE; |
60 virtual void Layout() OVERRIDE; | 60 virtual void Layout() OVERRIDE; |
61 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 61 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
62 | 62 |
63 // views::ButtonListener overrides: | 63 // views::ButtonListener overrides: |
64 virtual void ButtonPressed(views::Button* sender, | 64 virtual void ButtonPressed(views::Button* sender, |
65 const ui::Event& event) OVERRIDE; | 65 const ui::Event& event) OVERRIDE; |
66 | 66 |
67 // views::ContextMenuController overrides: | 67 // views::ContextMenuController overrides: |
68 virtual void ShowContextMenuForView(views::View* source, | 68 virtual void ShowContextMenuForView(views::View* source, |
69 const gfx::Point& point) OVERRIDE; | 69 const gfx::Point& point, |
| 70 ui::MenuSourceType source_type) OVERRIDE; |
70 | 71 |
71 // SearchResultObserver overrides: | 72 // SearchResultObserver overrides: |
72 virtual void OnIconChanged() OVERRIDE; | 73 virtual void OnIconChanged() OVERRIDE; |
73 virtual void OnActionIconsChanged() OVERRIDE; | 74 virtual void OnActionIconsChanged() OVERRIDE; |
74 | 75 |
75 SearchResult* result_; // Owned by AppListModel::SearchResults. | 76 SearchResult* result_; // Owned by AppListModel::SearchResults. |
76 | 77 |
77 // Parent list view. Owned by views hierarchy. | 78 // Parent list view. Owned by views hierarchy. |
78 SearchResultListView* list_view_; | 79 SearchResultListView* list_view_; |
79 | 80 |
80 // Not owned by us. | 81 // Not owned by us. |
81 SearchResultViewDelegate* delegate_; | 82 SearchResultViewDelegate* delegate_; |
82 | 83 |
83 views::ImageView* icon_; // Owned by views hierarchy. | 84 views::ImageView* icon_; // Owned by views hierarchy. |
84 scoped_ptr<gfx::RenderText> title_text_; | 85 scoped_ptr<gfx::RenderText> title_text_; |
85 scoped_ptr<gfx::RenderText> details_text_; | 86 scoped_ptr<gfx::RenderText> details_text_; |
86 | 87 |
87 // Owned by the views hierarchy. | 88 // Owned by the views hierarchy. |
88 std::vector<views::ImageButton*> action_buttons_; | 89 std::vector<views::ImageButton*> action_buttons_; |
89 | 90 |
90 scoped_ptr<views::MenuRunner> context_menu_runner_; | 91 scoped_ptr<views::MenuRunner> context_menu_runner_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(SearchResultView); | 93 DISALLOW_COPY_AND_ASSIGN(SearchResultView); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace app_list | 96 } // namespace app_list |
96 | 97 |
97 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 98 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
OLD | NEW |