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> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 IBOutlet NSMenuItem* tabposeMenuItem_; | 74 IBOutlet NSMenuItem* tabposeMenuItem_; |
75 | 75 |
76 // Indicates wheter an NSPopover is currently being shown. | 76 // Indicates wheter an NSPopover is currently being shown. |
77 BOOL hasPopover_; | 77 BOOL hasPopover_; |
78 | 78 |
79 // Observers that listen to the work area changes. | 79 // Observers that listen to the work area changes. |
80 ObserverList<ui::WorkAreaWatcherObserver> workAreaChangeObservers_; | 80 ObserverList<ui::WorkAreaWatcherObserver> workAreaChangeObservers_; |
81 | 81 |
82 scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_; | 82 scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_; |
83 PrefChangeRegistrar localPrefRegistrar_; | 83 PrefChangeRegistrar localPrefRegistrar_; |
84 | |
85 base::scoped_nsobject<NSMenuItem> appMenuItem_; | |
tapted
2013/07/04 02:43:33
Probably needs a comment here to tie this in. E.g.
jackhou1
2013/07/05 03:52:37
Done.
| |
84 } | 86 } |
85 | 87 |
86 @property(readonly, nonatomic) BOOL startupComplete; | 88 @property(readonly, nonatomic) BOOL startupComplete; |
87 @property(readonly, nonatomic) Profile* lastProfile; | 89 @property(readonly, nonatomic) Profile* lastProfile; |
88 | 90 |
89 - (void)didEndMainMessageLoop; | 91 - (void)didEndMainMessageLoop; |
90 | 92 |
91 // Try to close all browser windows, and if that succeeds then quit. | 93 // Try to close all browser windows, and if that succeeds then quit. |
92 - (BOOL)tryToTerminateApplication:(NSApplication*)app; | 94 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
93 | 95 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 namespace app_controller_mac { | 138 namespace app_controller_mac { |
137 | 139 |
138 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 140 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
139 // SessionService::Observe() to get around windows/linux and mac having | 141 // SessionService::Observe() to get around windows/linux and mac having |
140 // different models of application lifetime. | 142 // different models of application lifetime. |
141 bool IsOpeningNewWindow(); | 143 bool IsOpeningNewWindow(); |
142 | 144 |
143 } // namespace app_controller_mac | 145 } // namespace app_controller_mac |
144 | 146 |
145 #endif | 147 #endif |
OLD | NEW |