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 <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 relaunch.GetCommandLineString(), app_name, hwnd); | 242 relaunch.GetCommandLineString(), app_name, hwnd); |
243 ::SetWindowText(hwnd, app_name.c_str()); | 243 ::SetWindowText(hwnd, app_name.c_str()); |
244 base::string16 icon_path = GetAppListIconPath(); | 244 base::string16 icon_path = GetAppListIconPath(); |
245 ui::win::SetAppIconForWindow(icon_path, hwnd); | 245 ui::win::SetAppIconForWindow(icon_path, hwnd); |
246 } | 246 } |
247 | 247 |
248 } // namespace | 248 } // namespace |
249 | 249 |
250 // static | 250 // static |
251 AppListServiceWin* AppListServiceWin::GetInstance() { | 251 AppListServiceWin* AppListServiceWin::GetInstance() { |
252 return Singleton<AppListServiceWin, | 252 return base::Singleton<AppListServiceWin, |
253 LeakySingletonTraits<AppListServiceWin> >::get(); | 253 base::LeakySingletonTraits<AppListServiceWin>>::get(); |
254 } | 254 } |
255 | 255 |
256 AppListServiceWin::AppListServiceWin() | 256 AppListServiceWin::AppListServiceWin() |
257 : AppListServiceViews(scoped_ptr<AppListControllerDelegate>( | 257 : AppListServiceViews(scoped_ptr<AppListControllerDelegate>( |
258 new AppListControllerDelegateWin(this))) { | 258 new AppListControllerDelegateWin(this))) { |
259 } | 259 } |
260 | 260 |
261 AppListServiceWin::~AppListServiceWin() { | 261 AppListServiceWin::~AppListServiceWin() { |
262 } | 262 } |
263 | 263 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 activation_tracker_.reset(new ActivationTrackerWin(this)); | 409 activation_tracker_.reset(new ActivationTrackerWin(this)); |
410 } | 410 } |
411 | 411 |
412 void AppListServiceWin::OnViewDismissed() { | 412 void AppListServiceWin::OnViewDismissed() { |
413 activation_tracker_->OnViewHidden(); | 413 activation_tracker_->OnViewHidden(); |
414 } | 414 } |
415 | 415 |
416 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { | 416 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { |
417 AppListWin::MoveNearCursor(view); | 417 AppListWin::MoveNearCursor(view); |
418 } | 418 } |
OLD | NEW |