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 #import "chrome/browser/ui/app_list/app_list_service_mac.h" | 5 #import "chrome/browser/ui/app_list/app_list_service_mac.h" |
6 | 6 |
7 #include <ApplicationServices/ApplicationServices.h> | 7 #include <ApplicationServices/ApplicationServices.h> |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 [animation_controller_ animateWindow:app_list_window | 419 [animation_controller_ animateWindow:app_list_window |
420 targetOrigin:last_start_origin_ | 420 targetOrigin:last_start_origin_ |
421 closing:YES]; | 421 closing:YES]; |
422 } | 422 } |
423 | 423 |
424 void AppListServiceMac::ShowForCustomLauncherPage(Profile* profile) { | 424 void AppListServiceMac::ShowForCustomLauncherPage(Profile* profile) { |
425 NOTIMPLEMENTED(); | 425 NOTIMPLEMENTED(); |
426 } | 426 } |
427 | 427 |
| 428 void AppListServiceMac::HideCustomLauncherPage() { |
| 429 NOTIMPLEMENTED(); |
| 430 } |
| 431 |
428 bool AppListServiceMac::IsAppListVisible() const { | 432 bool AppListServiceMac::IsAppListVisible() const { |
429 return [GetNativeWindow() isVisible] && | 433 return [GetNativeWindow() isVisible] && |
430 ![animation_controller_ isClosing]; | 434 ![animation_controller_ isClosing]; |
431 } | 435 } |
432 | 436 |
433 void AppListServiceMac::EnableAppList(Profile* initial_profile, | 437 void AppListServiceMac::EnableAppList(Profile* initial_profile, |
434 AppListEnableSource enable_source) { | 438 AppListEnableSource enable_source) { |
435 AppListServiceImpl::EnableAppList(initial_profile, enable_source); | 439 AppListServiceImpl::EnableAppList(initial_profile, enable_source); |
436 AppController* controller = [NSApp delegate]; | 440 AppController* controller = [NSApp delegate]; |
437 [controller initAppShimMenuController]; | 441 [controller initAppShimMenuController]; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 577 |
574 - (void)animationDidEnd:(NSAnimation*)animation { | 578 - (void)animationDidEnd:(NSAnimation*)animation { |
575 content::BrowserThread::PostTask( | 579 content::BrowserThread::PostTask( |
576 content::BrowserThread::UI, | 580 content::BrowserThread::UI, |
577 FROM_HERE, | 581 FROM_HERE, |
578 base::Bind(&AppListServiceMac::WindowAnimationDidEnd, | 582 base::Bind(&AppListServiceMac::WindowAnimationDidEnd, |
579 base::Unretained(GetActiveInstance()))); | 583 base::Unretained(GetActiveInstance()))); |
580 } | 584 } |
581 | 585 |
582 @end | 586 @end |
OLD | NEW |