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

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

Issue 18421007: [win] Set the profile path when enabling the app launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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
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 #include <ApplicationServices/ApplicationServices.h> 5 #include <ApplicationServices/ApplicationServices.h>
6 #import <Cocoa/Cocoa.h> 6 #import <Cocoa/Cocoa.h>
7 7
8 #include "apps/app_shim/app_shim_handler_mac.h" 8 #include "apps/app_shim/app_shim_handler_mac.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 void CreateAppList(Profile* profile); 58 void CreateAppList(Profile* profile);
59 void ShowWindowNearDock(); 59 void ShowWindowNearDock();
60 60
61 // AppListService overrides: 61 // AppListService overrides:
62 virtual void Init(Profile* initial_profile) OVERRIDE; 62 virtual void Init(Profile* initial_profile) OVERRIDE;
63 virtual void ShowAppList(Profile* requested_profile) OVERRIDE; 63 virtual void ShowAppList(Profile* requested_profile) OVERRIDE;
64 virtual void DismissAppList() OVERRIDE; 64 virtual void DismissAppList() OVERRIDE;
65 virtual bool IsAppListVisible() const OVERRIDE; 65 virtual bool IsAppListVisible() const OVERRIDE;
66 virtual void EnableAppList() OVERRIDE; 66 virtual void EnableAppList(Profile* initial_profile) OVERRIDE;
67 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; 67 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE;
68 68
69 // AppListServiceImpl override: 69 // AppListServiceImpl override:
70 virtual void OnSigninStatusChanged() OVERRIDE; 70 virtual void OnSigninStatusChanged() OVERRIDE;
71 71
72 // AppShimHandler overrides: 72 // AppShimHandler overrides:
73 virtual void OnShimLaunch(apps::AppShimHandler::Host* host, 73 virtual void OnShimLaunch(apps::AppShimHandler::Host* host,
74 apps::AppShimLaunchType launch_type) OVERRIDE; 74 apps::AppShimLaunchType launch_type) OVERRIDE;
75 virtual void OnShimClose(apps::AppShimHandler::Host* host) OVERRIDE; 75 virtual void OnShimClose(apps::AppShimHandler::Host* host) OVERRIDE;
76 virtual void OnShimFocus(apps::AppShimHandler::Host* host, 76 virtual void OnShimFocus(apps::AppShimHandler::Host* host,
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 FOR_EACH_OBSERVER(apps::AppShimHandler::Host, 314 FOR_EACH_OBSERVER(apps::AppShimHandler::Host,
315 observers_, 315 observers_,
316 OnAppClosed()); 316 OnAppClosed());
317 } 317 }
318 318
319 bool AppListServiceMac::IsAppListVisible() const { 319 bool AppListServiceMac::IsAppListVisible() const {
320 return [[window_controller_ window] isVisible]; 320 return [[window_controller_ window] isVisible];
321 } 321 }
322 322
323 void AppListServiceMac::EnableAppList() { 323 void AppListServiceMac::EnableAppList(Profile* initial_profile) {
324 // TODO(tapted): Implement enable logic here for OSX. 324 // TODO(tapted): Implement enable logic here for OSX.
325 } 325 }
326 326
327 NSWindow* AppListServiceMac::GetAppListWindow() { 327 NSWindow* AppListServiceMac::GetAppListWindow() {
328 return [window_controller_ window]; 328 return [window_controller_ window];
329 } 329 }
330 330
331 void AppListServiceMac::OnSigninStatusChanged() { 331 void AppListServiceMac::OnSigninStatusChanged() {
332 [[window_controller_ appListViewController] onSigninStatusChanged]; 332 [[window_controller_ appListViewController] onSigninStatusChanged];
333 } 333 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 // static 466 // static
467 AppListService* AppListService::Get() { 467 AppListService* AppListService::Get() {
468 return AppListServiceMac::GetInstance(); 468 return AppListServiceMac::GetInstance();
469 } 469 }
470 470
471 // static 471 // static
472 void AppListService::InitAll(Profile* initial_profile) { 472 void AppListService::InitAll(Profile* initial_profile) {
473 Get()->Init(initial_profile); 473 Get()->Init(initial_profile);
474 } 474 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_disabled.cc ('k') | chrome/browser/ui/ash/app_list/app_list_service_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698