| 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 "chrome/browser/ui/ash/app_list/app_list_view_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile_manager.h" | 7 #include "chrome/browser/profiles/profile_manager.h" |
| 8 #include "chrome/browser/ui/ash/app_list/apps_model_builder.h" | 8 #include "chrome/browser/ui/app_list/apps_model_builder.h" |
| 9 #include "chrome/browser/ui/ash/app_list/chrome_app_list_item.h" | 9 #include "chrome/browser/ui/app_list/chrome_app_list_item.h" |
| 10 #include "chrome/browser/ui/ash/app_list/search_builder.h" | 10 #include "chrome/browser/ui/app_list/search_builder.h" |
| 11 #include "content/public/browser/user_metrics.h" | 11 #include "content/public/browser/user_metrics.h" |
| 12 | 12 |
| 13 AppListViewDelegate::AppListViewDelegate(AppListController* controller) | 13 AppListViewDelegate::AppListViewDelegate(AppListController* controller) |
| 14 : controller_(controller) {} | 14 : controller_(controller) {} |
| 15 | 15 |
| 16 AppListViewDelegate::~AppListViewDelegate() {} | 16 AppListViewDelegate::~AppListViewDelegate() {} |
| 17 | 17 |
| 18 void AppListViewDelegate::SetModel(app_list::AppListModel* model) { | 18 void AppListViewDelegate::SetModel(app_list::AppListModel* model) { |
| 19 if (model) { | 19 if (model) { |
| 20 Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord(); | 20 Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void AppListViewDelegate::OpenSearchResult( | 53 void AppListViewDelegate::OpenSearchResult( |
| 54 const app_list::SearchResult& result, | 54 const app_list::SearchResult& result, |
| 55 int event_flags) { | 55 int event_flags) { |
| 56 if (search_builder_.get()) | 56 if (search_builder_.get()) |
| 57 search_builder_->OpenResult(result, event_flags); | 57 search_builder_->OpenResult(result, event_flags); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void AppListViewDelegate::Close() { | 60 void AppListViewDelegate::Close() { |
| 61 controller_->CloseView(); | 61 controller_->CloseView(); |
| 62 } | 62 } |
| OLD | NEW |