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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #include <vector> | 10 #include <vector> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 IBOutlet NSMenuItem* closeTabMenuItem_; | 56 IBOutlet NSMenuItem* closeTabMenuItem_; |
57 IBOutlet NSMenuItem* closeWindowMenuItem_; | 57 IBOutlet NSMenuItem* closeWindowMenuItem_; |
58 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. | 58 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. |
59 | 59 |
60 // Outlet for the help menu so we can bless it so Cocoa adds the search item | 60 // Outlet for the help menu so we can bless it so Cocoa adds the search item |
61 // to it. | 61 // to it. |
62 IBOutlet NSMenu* helpMenu_; | 62 IBOutlet NSMenu* helpMenu_; |
63 | 63 |
64 // Outlet for the tabpose menu item so we can hide it. | 64 // Outlet for the tabpose menu item so we can hide it. |
65 IBOutlet NSMenuItem* tabposeMenuItem_; | 65 IBOutlet NSMenuItem* tabposeMenuItem_; |
| 66 |
| 67 // Indicates wheter an NSPopover is currently being shown. |
| 68 BOOL hasPopover_; |
66 } | 69 } |
67 | 70 |
68 @property(readonly, nonatomic) BOOL startupComplete; | 71 @property(readonly, nonatomic) BOOL startupComplete; |
69 @property(readonly, nonatomic) Profile* lastProfile; | 72 @property(readonly, nonatomic) Profile* lastProfile; |
70 | 73 |
71 // Registers for various event handlers and performs initialization. | |
72 - (void)registerEventHandlersAndInitialize; | |
73 | |
74 - (void)didEndMainMessageLoop; | 74 - (void)didEndMainMessageLoop; |
75 | 75 |
76 // Try to close all browser windows, and if that succeeds then quit. | 76 // Try to close all browser windows, and if that succeeds then quit. |
77 - (BOOL)tryToTerminateApplication:(NSApplication*)app; | 77 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
78 | 78 |
79 // Stop trying to terminate the application. That is, prevent the final browser | 79 // Stop trying to terminate the application. That is, prevent the final browser |
80 // window closure from causing the application to quit. | 80 // window closure from causing the application to quit. |
81 - (void)stopTryingToTerminateApplication:(NSApplication*)app; | 81 - (void)stopTryingToTerminateApplication:(NSApplication*)app; |
82 | 82 |
83 // Returns true if there is not a modal window (either window- or application- | 83 // Returns true if there is not a modal window (either window- or application- |
(...skipping 20 matching lines...) Expand all Loading... |
104 - (const std::vector<GURL>&)startupUrls; | 104 - (const std::vector<GURL>&)startupUrls; |
105 | 105 |
106 // Clear the list of startup URLs. | 106 // Clear the list of startup URLs. |
107 - (void)clearStartupUrls; | 107 - (void)clearStartupUrls; |
108 | 108 |
109 - (BookmarkMenuBridge*)bookmarkMenuBridge; | 109 - (BookmarkMenuBridge*)bookmarkMenuBridge; |
110 | 110 |
111 @end | 111 @end |
112 | 112 |
113 #endif | 113 #endif |
OLD | NEW |