[M85 Dev][EFL] Fix errors to generate ninja files
[platform/framework/web/chromium-efl.git] / chrome / browser / chrome_browser_application_mac.h
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
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_mac.h"
15
16 @interface BrowserCrApplication : NSApplication<CrAppProtocol,
17                                                 CrAppControlProtocol> {
18  @private
19   BOOL _handlingSendEvent;
20 }
21
22 // Our implementation of |-terminate:| only attempts to terminate the
23 // application, i.e., begins a process which may lead to termination. This
24 // method cancels that process.
25 - (void)cancelTerminate:(id)sender;
26 @end
27
28 #endif  // __OBJC__
29
30 namespace chrome_browser_application_mac {
31
32 // To be used to instantiate BrowserCrApplication from C++ code.
33 void RegisterBrowserCrApp();
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_