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 #include "ui/app_list/app_list_view.h" | 5 #include "ui/app_list/app_list_view.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "ui/app_list/app_list_background.h" | 8 #include "ui/app_list/app_list_background.h" |
9 #include "ui/app_list/app_list_constants.h" | 9 #include "ui/app_list/app_list_constants.h" |
10 #include "ui/app_list/app_list_item_view.h" | 10 #include "ui/app_list/app_list_item_view.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 delegate_->OpenSearchResult(result, event_flags); | 193 delegate_->OpenSearchResult(result, event_flags); |
194 } | 194 } |
195 | 195 |
196 void AppListView::InvokeResultAction(const SearchResult& result, | 196 void AppListView::InvokeResultAction(const SearchResult& result, |
197 int action_index, | 197 int action_index, |
198 int event_flags) { | 198 int event_flags) { |
199 if (delegate_.get()) | 199 if (delegate_.get()) |
200 delegate_->InvokeSearchResultAction(result, action_index, event_flags); | 200 delegate_->InvokeSearchResultAction(result, action_index, event_flags); |
201 } | 201 } |
202 | 202 |
203 void AppListView::OnWidgetClosing(views::Widget* widget) { | |
xiyuan
2012/10/09 17:43:15
Call BubbleDelegateView::OnWidgetClosing or add a
benwells
2012/10/10 00:55:21
Done (and also check widget).
| |
204 if (delegate_.get()) | |
205 delegate_->ViewClosing(); | |
206 } | |
207 | |
208 void AppListView::OnWidgetActivationChanged(views::Widget* widget, | |
209 bool active) { | |
xiyuan
2012/10/09 17:43:15
Add a comment to explain why we don't want to call
benwells
2012/10/10 00:55:21
Done (and also check widget).
| |
210 if (delegate_.get()) | |
211 delegate_->ViewActivationChanged(active); | |
212 } | |
213 | |
203 } // namespace app_list | 214 } // namespace app_list |
OLD | NEW |