Allow inclusion of cef_application_mac.h from pure C/ObjC (issue #2297)

This commit is contained in:
Lk Xf 2017-11-15 19:55:16 +00:00 committed by Marshall Greenblatt
parent 89a1f2b372
commit 4a6e9b636e
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,8 @@
@protocol CefAppProtocol<CrAppControlProtocol> @protocol CefAppProtocol<CrAppControlProtocol>
@end @end
#ifdef __cplusplus
// Controls the state of |isHandlingSendEvent| in the event loop so that it is // Controls the state of |isHandlingSendEvent| in the event loop so that it is
// reset properly. // reset properly.
class CefScopedSendingEvent { class CefScopedSendingEvent {
@ -99,6 +101,8 @@ class CefScopedSendingEvent {
BOOL handling_; BOOL handling_;
}; };
#endif // __cplusplus
#endif // defined(OS_MACOSX) && defined(__OBJC__) #endif // defined(OS_MACOSX) && defined(__OBJC__)
#endif // CEF_INCLUDE_CEF_APPLICATION_MAC_H_ #endif // CEF_INCLUDE_CEF_APPLICATION_MAC_H_