[M120][Tizen][Onscreen] Fix build errors for TV profile
[platform/framework/web/chromium-efl.git] / chrome / browser / chrome_browser_application_mac.h
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.
4
5 #ifndef CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_
7
8 #ifdef __OBJC__
9
10 #import <AppKit/AppKit.h>
11 #include <stddef.h>
12
13 #import "base/mac/scoped_sending_event.h"
14 #import "base/message_loop/message_pump_apple.h"
15
16 @interface BrowserCrApplication
17     : NSApplication <CrAppProtocol, CrAppControlProtocol>
18
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;
23 @end
24
25 #endif  // __OBJC__
26
27 namespace chrome_browser_application_mac {
28
29 // To be used to instantiate BrowserCrApplication from C++ code.
30 void RegisterBrowserCrApp();
31
32 // Provide additional initialization for headless mode from C++ code.
33 void InitializeHeadlessMode();
34
35 // Calls -[NSApp terminate:].
36 void Terminate();
37
38 // Cancels a termination started by |Terminate()|.
39 void CancelTerminate();
40
41 }  // namespace chrome_browser_application_mac
42
43 #endif  // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_