2015-01-29 21:53:53 +01:00
|
|
|
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2015-01-31 01:55:56 +01:00
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_TYPES_H_
|
|
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_TYPES_H_
|
|
|
|
#pragma once
|
2015-01-29 21:53:53 +01:00
|
|
|
|
|
|
|
#include "include/cef_base.h"
|
|
|
|
|
|
|
|
#if defined(OS_LINUX)
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
// The Linux client uses GTK instead of the underlying platform type (X11).
|
|
|
|
#define ClientWindowHandle GtkWidget*
|
|
|
|
#else
|
|
|
|
#define ClientWindowHandle CefWindowHandle
|
|
|
|
#endif
|
|
|
|
|
2020-08-29 00:39:23 +02:00
|
|
|
#if defined(OS_MAC)
|
2019-04-23 19:17:56 +02:00
|
|
|
#define ClientNativeMacWindow void*
|
2015-01-30 19:07:13 +01:00
|
|
|
#ifdef __OBJC__
|
2019-04-23 19:17:56 +02:00
|
|
|
#define CAST_CLIENT_NATIVE_MAC_WINDOW_TO_NSWINDOW(native) \
|
|
|
|
(__bridge NSWindow*)native
|
|
|
|
#define CAST_NSWINDOW_TO_CLIENT_NATIVE_MAC_WINDOW(window) (__bridge void*)window
|
|
|
|
#endif // __OBJC__
|
2020-08-29 00:39:23 +02:00
|
|
|
#endif // defined OS_MAC
|
2015-01-30 19:07:13 +01:00
|
|
|
|
2015-01-31 01:55:56 +01:00
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_TYPES_H_
|