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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // AppKit space (Y positive is up). | 42 // AppKit space (Y positive is up). |
43 static void FindAnchorPoint(const gfx::Size& window_size, | 43 static void FindAnchorPoint(const gfx::Size& window_size, |
44 const gfx::Display& display, | 44 const gfx::Display& display, |
45 int primary_display_height, | 45 int primary_display_height, |
46 bool cursor_is_visible, | 46 bool cursor_is_visible, |
47 const gfx::Point& cursor, | 47 const gfx::Point& cursor, |
48 NSPoint* target_origin, | 48 NSPoint* target_origin, |
49 NSPoint* start_origin); | 49 NSPoint* start_origin); |
50 | 50 |
51 void ShowWindowNearDock(); | 51 void ShowWindowNearDock(); |
| 52 void WindowAnimationDidEnd(); |
52 | 53 |
53 // AppListService overrides: | 54 // AppListService overrides: |
54 virtual void Init(Profile* initial_profile) OVERRIDE; | 55 virtual void Init(Profile* initial_profile) OVERRIDE; |
55 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; | 56 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; |
56 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; | 57 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; |
57 virtual void DismissAppList() OVERRIDE; | 58 virtual void DismissAppList() OVERRIDE; |
58 virtual bool IsAppListVisible() const OVERRIDE; | 59 virtual bool IsAppListVisible() const OVERRIDE; |
59 virtual void EnableAppList(Profile* initial_profile) OVERRIDE; | 60 virtual void EnableAppList(Profile* initial_profile) OVERRIDE; |
60 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; | 61 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; |
61 virtual AppListControllerDelegate* GetControllerDelegate() OVERRIDE; | 62 virtual AppListControllerDelegate* GetControllerDelegate() OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
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 Profile* profile_; | 89 Profile* profile_; |
89 scoped_ptr<AppListControllerDelegateImpl> controller_delegate_; | 90 scoped_ptr<AppListControllerDelegateImpl> controller_delegate_; |
90 | 91 |
91 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); | 92 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); |
92 }; | 93 }; |
93 | 94 |
94 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ | 95 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_ |
OLD | NEW |