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) { |
| 204 BubbleDelegateView::OnWidgetClosing(widget); |
| 205 if (delegate_.get() && widget == GetWidget()) |
| 206 delegate_->ViewClosing(); |
| 207 } |
| 208 |
| 209 void AppListView::OnWidgetActivationChanged(views::Widget* widget, |
| 210 bool active) { |
| 211 // Do not called inherited function as the bubble delegate auto close |
| 212 // functionality is not used. |
| 213 if (delegate_.get() && widget == GetWidget()) |
| 214 delegate_->ViewActivationChanged(active); |
| 215 } |
| 216 |
203 } // namespace app_list | 217 } // namespace app_list |
OLD | NEW |