1 // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 5 #ifndef CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_TYPES_H_ 6 #define CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_TYPES_H_ 7 #pragma once 8 9 #include "include/cef_base.h" 10 11 #if defined(OS_LINUX) 12 #include <gtk/gtk.h> 13 14 // The Linux client uses GTK instead of the underlying platform type (X11). 15 #define ClientWindowHandle GtkWidget* 16 #else 17 #define ClientWindowHandle CefWindowHandle 18 #endif 19 20 #if defined(OS_MAC) 21 #define ClientNativeMacWindow void* 22 #ifdef __OBJC__ 23 #define CAST_CLIENT_NATIVE_MAC_WINDOW_TO_NSWINDOW(native) \ 24 (__bridge NSWindow*)native 25 #define CAST_NSWINDOW_TO_CLIENT_NATIVE_MAC_WINDOW(window) (__bridge void*)window 26 #endif // __OBJC__ 27 #endif // defined OS_MAC 28 29 #endif // CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_TYPES_H_ 30