| 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 "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 void ShowWindowNearDock(); | 45 void ShowWindowNearDock(); |
| 46 void WindowAnimationDidEnd(); | 46 void WindowAnimationDidEnd(); |
| 47 void InitWithProfilePath(Profile* initial_profile, | 47 void InitWithProfilePath(Profile* initial_profile, |
| 48 const base::FilePath& profile_path); | 48 const base::FilePath& profile_path); |
| 49 | 49 |
| 50 // AppListService overrides: | 50 // AppListService overrides: |
| 51 void Init(Profile* initial_profile) override; | 51 void Init(Profile* initial_profile) override; |
| 52 void DismissAppList() override; | 52 void DismissAppList() override; |
| 53 void ShowForCustomLauncherPage(Profile* profile) override; | 53 void ShowForCustomLauncherPage(Profile* profile) override; |
| 54 void HideLauncherPageIfShowing() override; |
| 54 bool IsAppListVisible() const override; | 55 bool IsAppListVisible() const override; |
| 55 void EnableAppList(Profile* initial_profile, | 56 void EnableAppList(Profile* initial_profile, |
| 56 AppListEnableSource enable_source) override; | 57 AppListEnableSource enable_source) override; |
| 57 gfx::NativeWindow GetAppListWindow() override; | 58 gfx::NativeWindow GetAppListWindow() override; |
| 58 void CreateShortcut() override; | 59 void CreateShortcut() override; |
| 59 | 60 |
| 60 // AppShimHandler overrides: | 61 // AppShimHandler overrides: |
| 61 void OnShimLaunch(apps::AppShimHandler::Host* host, | 62 void OnShimLaunch(apps::AppShimHandler::Host* host, |
| 62 apps::AppShimLaunchType launch_type, | 63 apps::AppShimLaunchType launch_type, |
| 63 const std::vector<base::FilePath>& files) override; | 64 const std::vector<base::FilePath>& files) override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 83 | 84 |
| 84 private: | 85 private: |
| 85 base::scoped_nsobject<AppListAnimationController> animation_controller_; | 86 base::scoped_nsobject<AppListAnimationController> animation_controller_; |
| 86 base::scoped_nsobject<NSRunningApplication> previously_active_application_; | 87 base::scoped_nsobject<NSRunningApplication> previously_active_application_; |
| 87 NSPoint last_start_origin_; | 88 NSPoint last_start_origin_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); | 90 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ | 93 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ |
| OLD | NEW |