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

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

Issue 2605006: [Mac] Disable menu certain menu items when a modal dialog or sheet is present. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Remove confusion (or add more?) Created 10 years, 6 months 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 | « no previous file | 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) 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 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 - (void)didEndMainMessageLoop; 56 - (void)didEndMainMessageLoop;
57 - (Profile*)defaultProfile; 57 - (Profile*)defaultProfile;
58 58
59 // Try to close all browser windows, and if that succeeds then quit. 59 // Try to close all browser windows, and if that succeeds then quit.
60 - (BOOL)tryToTerminateApplication:(NSApplication*)app; 60 - (BOOL)tryToTerminateApplication:(NSApplication*)app;
61 61
62 // Stop trying to terminate the application. That is, prevent the final browser 62 // Stop trying to terminate the application. That is, prevent the final browser
63 // window closure from causing the application to quit. 63 // window closure from causing the application to quit.
64 - (void)stopTryingToTerminateApplication:(NSApplication*)app; 64 - (void)stopTryingToTerminateApplication:(NSApplication*)app;
65 65
66 // Returns true if there is not a modal window (either window- or application-
67 // modal) blocking the active browser. Note that tab modal dialogs (HTTP auth
68 // sheets) will not count as blocking the browser. But things like open/save
69 // dialogs that are window modal will block the browser.
70 - (BOOL)keyWindowIsNotModal;
71
66 // Show the preferences window, or bring it to the front if it's already 72 // Show the preferences window, or bring it to the front if it's already
67 // visible. 73 // visible.
68 - (IBAction)showPreferences:(id)sender; 74 - (IBAction)showPreferences:(id)sender;
69 75
70 // Redirect in the menu item from the expected target of "File's 76 // Redirect in the menu item from the expected target of "File's
71 // Owner" (NSAppliation) for a Branded About Box 77 // Owner" (NSAppliation) for a Branded About Box
72 - (IBAction)orderFrontStandardAboutPanel:(id)sender; 78 - (IBAction)orderFrontStandardAboutPanel:(id)sender;
73 79
74 // Delegate method to return the dock menu. 80 // Delegate method to return the dock menu.
75 - (NSMenu*)applicationDockMenu:(NSApplication*)sender; 81 - (NSMenu*)applicationDockMenu:(NSApplication*)sender;
76 82
77 // Get the URLs that Launch Services expects the browser to open at startup. 83 // Get the URLs that Launch Services expects the browser to open at startup.
78 - (const std::vector<GURL>&)startupUrls; 84 - (const std::vector<GURL>&)startupUrls;
79 85
80 // Clear the list of startup URLs. 86 // Clear the list of startup URLs.
81 - (void)clearStartupUrls; 87 - (void)clearStartupUrls;
82 88
83 @end 89 @end
84 90
85 #endif 91 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698