Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_mac.h

Issue 23072036: Adds an integration test for uninstalling app list search results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review, aura is happy Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include "apps/app_shim/app_shim_handler_mac.h"
11 #include "base/mac/scoped_nsobject.h"
12 #include "chrome/browser/ui/app_list/app_list_service_impl.h"
13
14 @class AppListWindowController;
15 template <typename T> struct DefaultSingletonTraits;
16
17 namespace test {
18 class AppListServiceTestApiMac;
19 }
20
21 // AppListServiceMac manages global resources needed for the app list to
22 // operate, and controls when the app list is opened and closed.
23 class AppListServiceMac : public AppListServiceImpl,
24 public apps::AppShimHandler {
25 public:
26 virtual ~AppListServiceMac();
27
28 static AppListServiceMac* GetInstance();
29
30 void ShowWindowNearDock();
31
32 // AppListService overrides:
33 virtual void Init(Profile* initial_profile) OVERRIDE;
34 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE;
35 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE;
36 virtual void DismissAppList() OVERRIDE;
37 virtual bool IsAppListVisible() const OVERRIDE;
38 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE;
39 virtual AppListControllerDelegate* CreateControllerDelegate() OVERRIDE;
40
41 // AppListServiceImpl overrides:
42 virtual void CreateShortcut() OVERRIDE;
43
44 // AppShimHandler overrides:
45 virtual void OnShimLaunch(apps::AppShimHandler::Host* host,
46 apps::AppShimLaunchType launch_type) OVERRIDE;
47 virtual void OnShimClose(apps::AppShimHandler::Host* host) OVERRIDE;
48 virtual void OnShimFocus(apps::AppShimHandler::Host* host,
49 apps::AppShimFocusType focus_type) OVERRIDE;
50 virtual void OnShimSetHidden(apps::AppShimHandler::Host* host,
51 bool hidden) OVERRIDE;
52 virtual void OnShimQuit(apps::AppShimHandler::Host* host) OVERRIDE;
53
54 private:
55 friend struct DefaultSingletonTraits<AppListServiceMac>;
56 friend class test::AppListServiceTestApiMac;
57
58 AppListServiceMac();
59
60 base::scoped_nsobject<AppListWindowController> window_controller_;
61 base::scoped_nsobject<NSRunningApplication> previously_active_application_;
62
63 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac);
64 };
65
66 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698