| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 22 matching lines...) Expand all Loading... |
| 33 scoped_ptr<HistoryMenuBridge> historyMenuBridge_; | 33 scoped_ptr<HistoryMenuBridge> historyMenuBridge_; |
| 34 AboutWindowController* aboutController_; // Weak. | 34 AboutWindowController* aboutController_; // Weak. |
| 35 | 35 |
| 36 // If we're told to open URLs (in particular, via |-application:openFiles:| by | 36 // If we're told to open URLs (in particular, via |-application:openFiles:| by |
| 37 // Launch Services) before we've launched the browser, we queue them up in | 37 // Launch Services) before we've launched the browser, we queue them up in |
| 38 // |startupUrls_| so that they can go in the first browser window/tab. | 38 // |startupUrls_| so that they can go in the first browser window/tab. |
| 39 std::vector<GURL> startupUrls_; | 39 std::vector<GURL> startupUrls_; |
| 40 BOOL startupComplete_; | 40 BOOL startupComplete_; |
| 41 | 41 |
| 42 // Outlets for the close tab/window menu items so that we can adjust the | 42 // Outlets for the close tab/window menu items so that we can adjust the |
| 43 // commmand-key equivalent depending on the kind of window and how many | 43 // commmand-key equivalent depending on the kind of window. |
| 44 // tabs it has. | |
| 45 IBOutlet NSMenuItem* closeTabMenuItem_; | 44 IBOutlet NSMenuItem* closeTabMenuItem_; |
| 46 IBOutlet NSMenuItem* closeWindowMenuItem_; | 45 IBOutlet NSMenuItem* closeWindowMenuItem_; |
| 47 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. | 46 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. |
| 48 | 47 |
| 49 // Outlet for the help menu so we can bless it so Cocoa adds the search item | 48 // Outlet for the help menu so we can bless it so Cocoa adds the search item |
| 50 // to it. | 49 // to it. |
| 51 IBOutlet NSMenu* helpMenu_; | 50 IBOutlet NSMenu* helpMenu_; |
| 52 | 51 |
| 53 // Outlet for the tabpose menu item so we can hide it. | 52 // Outlet for the tabpose menu item so we can hide it. |
| 54 IBOutlet NSMenuItem* tabposeMenuItem_; | 53 IBOutlet NSMenuItem* tabposeMenuItem_; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 - (const std::vector<GURL>&)startupUrls; | 89 - (const std::vector<GURL>&)startupUrls; |
| 91 | 90 |
| 92 // Clear the list of startup URLs. | 91 // Clear the list of startup URLs. |
| 93 - (void)clearStartupUrls; | 92 - (void)clearStartupUrls; |
| 94 | 93 |
| 95 - (BookmarkMenuBridge*)bookmarkMenuBridge; | 94 - (BookmarkMenuBridge*)bookmarkMenuBridge; |
| 96 | 95 |
| 97 @end | 96 @end |
| 98 | 97 |
| 99 #endif | 98 #endif |
| OLD | NEW |