| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/views/app_list/win/app_list_service_win.h" | 5 #include "chrome/browser/ui/views/app_list/win/app_list_service_win.h" |
| 6 | 6 |
| 7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 } // namespace | 239 } // namespace |
| 240 | 240 |
| 241 // static | 241 // static |
| 242 AppListServiceWin* AppListServiceWin::GetInstance() { | 242 AppListServiceWin* AppListServiceWin::GetInstance() { |
| 243 return base::Singleton<AppListServiceWin, | 243 return base::Singleton<AppListServiceWin, |
| 244 base::LeakySingletonTraits<AppListServiceWin>>::get(); | 244 base::LeakySingletonTraits<AppListServiceWin>>::get(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 AppListServiceWin::AppListServiceWin() | 247 AppListServiceWin::AppListServiceWin() |
| 248 : AppListServiceViews(scoped_ptr<AppListControllerDelegate>( | 248 : AppListServiceViews(std::unique_ptr<AppListControllerDelegate>( |
| 249 new AppListControllerDelegateWin(this))) { | 249 new AppListControllerDelegateWin(this))) {} |
| 250 } | |
| 251 | 250 |
| 252 AppListServiceWin::~AppListServiceWin() { | 251 AppListServiceWin::~AppListServiceWin() { |
| 253 } | 252 } |
| 254 | 253 |
| 255 void AppListServiceWin::ShowForProfile(Profile* requested_profile) { | 254 void AppListServiceWin::ShowForProfile(Profile* requested_profile) { |
| 256 AppListServiceViews::ShowForProfile(requested_profile); | 255 AppListServiceViews::ShowForProfile(requested_profile); |
| 257 | 256 |
| 258 #if defined(GOOGLE_CHROME_BUILD) | 257 #if defined(GOOGLE_CHROME_BUILD) |
| 259 content::BrowserThread::PostBlockingPoolTask( | 258 content::BrowserThread::PostBlockingPoolTask( |
| 260 FROM_HERE, base::Bind(SetDidRunForNDayActiveStats)); | 259 FROM_HERE, base::Bind(SetDidRunForNDayActiveStats)); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 activation_tracker_.reset(new ActivationTrackerWin(this)); | 399 activation_tracker_.reset(new ActivationTrackerWin(this)); |
| 401 } | 400 } |
| 402 | 401 |
| 403 void AppListServiceWin::OnViewDismissed() { | 402 void AppListServiceWin::OnViewDismissed() { |
| 404 activation_tracker_->OnViewHidden(); | 403 activation_tracker_->OnViewHidden(); |
| 405 } | 404 } |
| 406 | 405 |
| 407 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { | 406 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { |
| 408 AppListWin::MoveNearCursor(view); | 407 AppListWin::MoveNearCursor(view); |
| 409 } | 408 } |
| OLD | NEW |