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

Unified Diff: chrome/browser/ui/cocoa/confirm_quit_panel_controller.h

Issue 6625025: [Mac] Confirm-to-Quit: Wait for a KeyUp event if the user held Cmd+Q on the second tap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
diff --git a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
index 649f17cda61db764ba3237ddcccd8776778d8681..be569410f6fff6bee098e1ac9c0f38676c526734 100644
--- a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
+++ b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
@@ -24,6 +24,14 @@
// does not currently exist.
+ (ConfirmQuitPanelController*)sharedController;
+// Checks whether the |event| should trigger the feature.
++ (BOOL)eventTriggersFeature:(NSEvent*)event;
+
+// Runs a modal loop that brings up the panel and handles the logic for if and
+// when to terminate. Returns NSApplicationTerminateReply for use in
+// -[NSApplicationDelegate applicationShouldTerminate:].
+- (NSApplicationTerminateReply)runModalLoopForApplication:(NSApplication*)app;
+
// Shows the window.
- (void)showWindow:(id)sender;
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698