| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_CONTROLLER_MAC_H_ | 5 #ifndef CHROME_BROWSER_APP_CONTROLLER_MAC_H_ |
| 6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_ | 6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_ |
| 7 | 7 |
| 8 #if defined(__OBJC__) | 8 #if defined(__OBJC__) |
| 9 | 9 |
| 10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/mac/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/prefs/pref_change_registrar.h" | 16 #include "base/prefs/pref_change_registrar.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "ui/base/work_area_watcher_observer.h" | 18 #include "ui/base/work_area_watcher_observer.h" |
| 19 | 19 |
| 20 class AppControllerProfileObserver; | 20 class AppControllerProfileObserver; |
| 21 @class AppShimMenuController; | 21 @class AppShimMenuController; |
| 22 class BookmarkMenuBridge; | 22 class BookmarkMenuBridge; |
| 23 class CommandUpdater; | 23 class CommandUpdater; |
| 24 class GURL; | 24 class GURL; |
| 25 @class HandoffManager; | |
| 26 class HistoryMenuBridge; | 25 class HistoryMenuBridge; |
| 27 class Profile; | 26 class Profile; |
| 28 @class ProfileMenuController; | 27 @class ProfileMenuController; |
| 29 class QuitWithAppsController; | 28 class QuitWithAppsController; |
| 30 | 29 |
| 31 namespace ui { | 30 namespace ui { |
| 32 class WorkAreaWatcherObserver; | 31 class WorkAreaWatcherObserver; |
| 33 } | 32 } |
| 34 | 33 |
| 35 // The application controller object, created by loading the MainMenu nib. | 34 // The application controller object, created by loading the MainMenu nib. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 base::TimeTicks reopenTime_; | 90 base::TimeTicks reopenTime_; |
| 92 | 91 |
| 93 // Observers that listen to the work area changes. | 92 // Observers that listen to the work area changes. |
| 94 ObserverList<ui::WorkAreaWatcherObserver> workAreaChangeObservers_; | 93 ObserverList<ui::WorkAreaWatcherObserver> workAreaChangeObservers_; |
| 95 | 94 |
| 96 scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_; | 95 scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_; |
| 97 PrefChangeRegistrar localPrefRegistrar_; | 96 PrefChangeRegistrar localPrefRegistrar_; |
| 98 | 97 |
| 99 // Displays a notification when quitting while apps are running. | 98 // Displays a notification when quitting while apps are running. |
| 100 scoped_refptr<QuitWithAppsController> quitWithAppsController_; | 99 scoped_refptr<QuitWithAppsController> quitWithAppsController_; |
| 101 | |
| 102 // Responsible for maintaining all state related to the Handoff feature. | |
| 103 base::scoped_nsobject<HandoffManager> handoffManager_; | |
| 104 } | 100 } |
| 105 | 101 |
| 106 @property(readonly, nonatomic) BOOL startupComplete; | 102 @property(readonly, nonatomic) BOOL startupComplete; |
| 107 @property(readonly, nonatomic) Profile* lastProfile; | 103 @property(readonly, nonatomic) Profile* lastProfile; |
| 108 | 104 |
| 109 - (void)didEndMainMessageLoop; | 105 - (void)didEndMainMessageLoop; |
| 110 | 106 |
| 111 // Try to close all browser windows, and if that succeeds then quit. | 107 // Try to close all browser windows, and if that succeeds then quit. |
| 112 - (BOOL)tryToTerminateApplication:(NSApplication*)app; | 108 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
| 113 | 109 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 namespace app_controller_mac { | 162 namespace app_controller_mac { |
| 167 | 163 |
| 168 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 164 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
| 169 // SessionService::Observe() to get around windows/linux and mac having | 165 // SessionService::Observe() to get around windows/linux and mac having |
| 170 // different models of application lifetime. | 166 // different models of application lifetime. |
| 171 bool IsOpeningNewWindow(); | 167 bool IsOpeningNewWindow(); |
| 172 | 168 |
| 173 } // namespace app_controller_mac | 169 } // namespace app_controller_mac |
| 174 | 170 |
| 175 #endif | 171 #endif |
| OLD | NEW |