OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Outlets for the close tab/window menu items so that we can adjust the | 43 // Outlets for the close tab/window menu items so that we can adjust the |
44 // commmand-key equivalent depending on the kind of window and how many | 44 // commmand-key equivalent depending on the kind of window and how many |
45 // tabs it has. | 45 // tabs it has. |
46 IBOutlet NSMenuItem* closeTabMenuItem_; | 46 IBOutlet NSMenuItem* closeTabMenuItem_; |
47 IBOutlet NSMenuItem* closeWindowMenuItem_; | 47 IBOutlet NSMenuItem* closeWindowMenuItem_; |
48 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. | 48 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. |
49 | 49 |
50 // Outlet for the help menu so we can bless it so Cocoa adds the search item | 50 // Outlet for the help menu so we can bless it so Cocoa adds the search item |
51 // to it. | 51 // to it. |
52 IBOutlet NSMenu* helpMenu_; | 52 IBOutlet NSMenu* helpMenu_; |
| 53 |
| 54 // Outlet for the tabpose menu item so we can hide it. |
| 55 IBOutlet NSMenuItem* tabposeMenuItem_; |
53 } | 56 } |
54 | 57 |
55 @property(readonly, nonatomic) BOOL startupComplete; | 58 @property(readonly, nonatomic) BOOL startupComplete; |
56 | 59 |
57 - (void)didEndMainMessageLoop; | 60 - (void)didEndMainMessageLoop; |
58 - (Profile*)defaultProfile; | 61 - (Profile*)defaultProfile; |
59 | 62 |
60 // Try to close all browser windows, and if that succeeds then quit. | 63 // Try to close all browser windows, and if that succeeds then quit. |
61 - (BOOL)tryToTerminateApplication:(NSApplication*)app; | 64 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
62 | 65 |
(...skipping 20 matching lines...) Expand all Loading... |
83 | 86 |
84 // Get the URLs that Launch Services expects the browser to open at startup. | 87 // Get the URLs that Launch Services expects the browser to open at startup. |
85 - (const std::vector<GURL>&)startupUrls; | 88 - (const std::vector<GURL>&)startupUrls; |
86 | 89 |
87 // Clear the list of startup URLs. | 90 // Clear the list of startup URLs. |
88 - (void)clearStartupUrls; | 91 - (void)clearStartupUrls; |
89 | 92 |
90 @end | 93 @end |
91 | 94 |
92 #endif | 95 #endif |
OLD | NEW |