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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual const char* GetClassName() const OVERRIDE; | 58 virtual const char* GetClassName() const OVERRIDE; |
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( |
69 const gfx::Point& point) OVERRIDE; | 69 views::View* source, |
| 70 const gfx::Point& point, |
| 71 ui::ContextMenuSourceType source_type) OVERRIDE; |
70 | 72 |
71 // SearchResultObserver overrides: | 73 // SearchResultObserver overrides: |
72 virtual void OnIconChanged() OVERRIDE; | 74 virtual void OnIconChanged() OVERRIDE; |
73 virtual void OnActionIconsChanged() OVERRIDE; | 75 virtual void OnActionIconsChanged() OVERRIDE; |
74 | 76 |
75 SearchResult* result_; // Owned by AppListModel::SearchResults. | 77 SearchResult* result_; // Owned by AppListModel::SearchResults. |
76 | 78 |
77 // Parent list view. Owned by views hierarchy. | 79 // Parent list view. Owned by views hierarchy. |
78 SearchResultListView* list_view_; | 80 SearchResultListView* list_view_; |
79 | 81 |
80 // Not owned by us. | 82 // Not owned by us. |
81 SearchResultViewDelegate* delegate_; | 83 SearchResultViewDelegate* delegate_; |
82 | 84 |
83 views::ImageView* icon_; // Owned by views hierarchy. | 85 views::ImageView* icon_; // Owned by views hierarchy. |
84 scoped_ptr<gfx::RenderText> title_text_; | 86 scoped_ptr<gfx::RenderText> title_text_; |
85 scoped_ptr<gfx::RenderText> details_text_; | 87 scoped_ptr<gfx::RenderText> details_text_; |
86 | 88 |
87 // Owned by the views hierarchy. | 89 // Owned by the views hierarchy. |
88 std::vector<views::ImageButton*> action_buttons_; | 90 std::vector<views::ImageButton*> action_buttons_; |
89 | 91 |
90 scoped_ptr<views::MenuRunner> context_menu_runner_; | 92 scoped_ptr<views::MenuRunner> context_menu_runner_; |
91 | 93 |
92 DISALLOW_COPY_AND_ASSIGN(SearchResultView); | 94 DISALLOW_COPY_AND_ASSIGN(SearchResultView); |
93 }; | 95 }; |
94 | 96 |
95 } // namespace app_list | 97 } // namespace app_list |
96 | 98 |
97 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 99 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
OLD | NEW |