| 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/app_list/app_list_controller_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/extensions/extension_util.h" | 9 #include "chrome/browser/extensions/extension_util.h" |
| 10 #include "chrome/browser/extensions/install_tracker_factory.h" | 10 #include "chrome/browser/extensions/install_tracker_factory.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const ExtensionRegistry* registry = ExtensionRegistry::Get(profile); | 42 const ExtensionRegistry* registry = ExtensionRegistry::Get(profile); |
| 43 const extensions::Extension* extension = | 43 const extensions::Extension* extension = |
| 44 registry->GetInstalledExtension(extension_id); | 44 registry->GetInstalledExtension(extension_id); |
| 45 return extension; | 45 return extension; |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace | 48 } // namespace |
| 49 | 49 |
| 50 AppListControllerDelegate::~AppListControllerDelegate() {} | 50 AppListControllerDelegate::~AppListControllerDelegate() {} |
| 51 | 51 |
| 52 bool AppListControllerDelegate::ForceNativeDesktop() const { | |
| 53 return false; | |
| 54 } | |
| 55 | |
| 56 void AppListControllerDelegate::ViewClosing() {} | 52 void AppListControllerDelegate::ViewClosing() {} |
| 57 | 53 |
| 58 gfx::Rect AppListControllerDelegate::GetAppListBounds() { | 54 gfx::Rect AppListControllerDelegate::GetAppListBounds() { |
| 59 return gfx::Rect(); | 55 return gfx::Rect(); |
| 60 } | 56 } |
| 61 | 57 |
| 62 void AppListControllerDelegate::OnShowChildDialog() { | 58 void AppListControllerDelegate::OnShowChildDialog() { |
| 63 } | 59 } |
| 64 void AppListControllerDelegate::OnCloseChildDialog() { | 60 void AppListControllerDelegate::OnCloseChildDialog() { |
| 65 } | 61 } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 out_apps->InsertAll(registry->enabled_extensions()); | 197 out_apps->InsertAll(registry->enabled_extensions()); |
| 202 out_apps->InsertAll(registry->disabled_extensions()); | 198 out_apps->InsertAll(registry->disabled_extensions()); |
| 203 out_apps->InsertAll(registry->terminated_extensions()); | 199 out_apps->InsertAll(registry->terminated_extensions()); |
| 204 } | 200 } |
| 205 | 201 |
| 206 void AppListControllerDelegate::OnSearchStarted() { | 202 void AppListControllerDelegate::OnSearchStarted() { |
| 207 #if BUILDFLAG(ENABLE_RLZ) | 203 #if BUILDFLAG(ENABLE_RLZ) |
| 208 rlz::RLZTracker::RecordAppListSearch(); | 204 rlz::RLZTracker::RecordAppListSearch(); |
| 209 #endif | 205 #endif |
| 210 } | 206 } |
| OLD | NEW |