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

Side by Side Diff: chrome/browser/app_controller_mac.h

Issue 794853004: Reland 1: "mac: Allow Chrome to hand off its active URL to other devices." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from avi. Created 6 years 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
« no previous file with comments | « base/mac/sdk_forward_declarations.h ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 HandoffActiveURLObserverBridge;
26 @class HandoffManager;
25 class HistoryMenuBridge; 27 class HistoryMenuBridge;
26 class Profile; 28 class Profile;
27 @class ProfileMenuController; 29 @class ProfileMenuController;
28 class QuitWithAppsController; 30 class QuitWithAppsController;
29 31
30 namespace ui { 32 namespace ui {
31 class WorkAreaWatcherObserver; 33 class WorkAreaWatcherObserver;
32 } 34 }
33 35
34 // The application controller object, created by loading the MainMenu nib. 36 // The application controller object, created by loading the MainMenu nib.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 base::TimeTicks reopenTime_; 92 base::TimeTicks reopenTime_;
91 93
92 // Observers that listen to the work area changes. 94 // Observers that listen to the work area changes.
93 ObserverList<ui::WorkAreaWatcherObserver> workAreaChangeObservers_; 95 ObserverList<ui::WorkAreaWatcherObserver> workAreaChangeObservers_;
94 96
95 scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_; 97 scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_;
96 PrefChangeRegistrar localPrefRegistrar_; 98 PrefChangeRegistrar localPrefRegistrar_;
97 99
98 // Displays a notification when quitting while apps are running. 100 // Displays a notification when quitting while apps are running.
99 scoped_refptr<QuitWithAppsController> quitWithAppsController_; 101 scoped_refptr<QuitWithAppsController> quitWithAppsController_;
102
103 // Responsible for maintaining all state related to the Handoff feature.
104 base::scoped_nsobject<HandoffManager> handoffManager_;
105
106 // Observes changes to the active URL.
107 scoped_ptr<HandoffActiveURLObserverBridge>
108 handoff_active_url_observer_bridge_;
100 } 109 }
101 110
102 @property(readonly, nonatomic) BOOL startupComplete; 111 @property(readonly, nonatomic) BOOL startupComplete;
103 @property(readonly, nonatomic) Profile* lastProfile; 112 @property(readonly, nonatomic) Profile* lastProfile;
104 113
105 - (void)didEndMainMessageLoop; 114 - (void)didEndMainMessageLoop;
106 115
107 // Try to close all browser windows, and if that succeeds then quit. 116 // Try to close all browser windows, and if that succeeds then quit.
108 - (BOOL)tryToTerminateApplication:(NSApplication*)app; 117 - (BOOL)tryToTerminateApplication:(NSApplication*)app;
109 118
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 namespace app_controller_mac { 171 namespace app_controller_mac {
163 172
164 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in 173 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
165 // SessionService::Observe() to get around windows/linux and mac having 174 // SessionService::Observe() to get around windows/linux and mac having
166 // different models of application lifetime. 175 // different models of application lifetime.
167 bool IsOpeningNewWindow(); 176 bool IsOpeningNewWindow();
168 177
169 } // namespace app_controller_mac 178 } // namespace app_controller_mac
170 179
171 #endif 180 #endif
OLDNEW
« no previous file with comments | « base/mac/sdk_forward_declarations.h ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698