1 // Copyright 2012 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_
10 #import <AppKit/AppKit.h>
13 #import "base/mac/scoped_sending_event.h"
14 #import "base/message_loop/message_pump_apple.h"
16 @interface BrowserCrApplication
17 : NSApplication <CrAppProtocol, CrAppControlProtocol>
19 // Our implementation of |-terminate:| only attempts to terminate the
20 // application, i.e., begins a process which may lead to termination. This
21 // method cancels that process.
22 - (void)cancelTerminate:(id)sender;
27 namespace chrome_browser_application_mac {
29 // To be used to instantiate BrowserCrApplication from C++ code.
30 void RegisterBrowserCrApp();
32 // Provide additional initialization for headless mode from C++ code.
33 void InitializeHeadlessMode();
35 // Calls -[NSApp terminate:].
38 // Cancels a termination started by |Terminate()|.
39 void CancelTerminate();
41 } // namespace chrome_browser_application_mac
43 #endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_