| 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 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "apps/app_shim/app_shim_handler_mac.h" | 10 #include "apps/app_shim/app_shim_handler_mac.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 static AppListServiceMac* GetInstance(); | 29 static AppListServiceMac* GetInstance(); |
| 30 | 30 |
| 31 void ShowWindowNearDock(); | 31 void ShowWindowNearDock(); |
| 32 | 32 |
| 33 // AppListService overrides: | 33 // AppListService overrides: |
| 34 virtual void Init(Profile* initial_profile) OVERRIDE; | 34 virtual void Init(Profile* initial_profile) OVERRIDE; |
| 35 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; | 35 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; |
| 36 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; | 36 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; |
| 37 virtual void DismissAppList() OVERRIDE; | 37 virtual void DismissAppList() OVERRIDE; |
| 38 virtual bool IsAppListVisible() const OVERRIDE; | 38 virtual bool IsAppListVisible() const OVERRIDE; |
| 39 virtual void EnableAppList(Profile* initial_profile) OVERRIDE; |
| 39 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; | 40 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; |
| 40 virtual AppListControllerDelegate* CreateControllerDelegate() OVERRIDE; | 41 virtual AppListControllerDelegate* CreateControllerDelegate() OVERRIDE; |
| 41 virtual Profile* GetCurrentAppListProfile() OVERRIDE; | 42 virtual Profile* GetCurrentAppListProfile() OVERRIDE; |
| 42 | 43 |
| 43 | 44 |
| 44 // AppListServiceImpl overrides: | 45 // AppListServiceImpl overrides: |
| 45 virtual void CreateShortcut() OVERRIDE; | 46 virtual void CreateShortcut() OVERRIDE; |
| 46 | 47 |
| 47 // AppShimHandler overrides: | 48 // AppShimHandler overrides: |
| 48 virtual void OnShimLaunch(apps::AppShimHandler::Host* host, | 49 virtual void OnShimLaunch(apps::AppShimHandler::Host* host, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 base::scoped_nsobject<AppListWindowController> window_controller_; | 66 base::scoped_nsobject<AppListWindowController> window_controller_; |
| 66 base::scoped_nsobject<AppListAnimationController> animation_controller_; | 67 base::scoped_nsobject<AppListAnimationController> animation_controller_; |
| 67 base::scoped_nsobject<NSRunningApplication> previously_active_application_; | 68 base::scoped_nsobject<NSRunningApplication> previously_active_application_; |
| 68 NSPoint last_start_origin_; | 69 NSPoint last_start_origin_; |
| 69 Profile* profile_; | 70 Profile* profile_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); | 72 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ | 75 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ |
| OLD | NEW |