This commit allows chromium code to use EFL as the main UI toolkit
instead of Aura. The actual implementation of EFL port of chromium
is done in an external module. This commit only exposes some of the
needed generic code paths that are normally disabled for non Aura or
MacOSX ports.
Reference:
5e22fe4d0bb137a1b73530205f7cdc07a31643c9
Change-Id: I1f327fb9e31616879cf0448735f1adbe82e476bf
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
#include "ui/display/display_switches.h"
#include "ui/gfx/switches.h"
-#if defined(USE_AURA) || defined(OS_MACOSX)
+#if defined(USE_AURA) || defined(OS_MACOSX) || defined(USE_EFL)
#include "content/browser/compositor/image_transport_factory.h"
#endif
BrowserCompositorMac::DisableRecyclingForShutdown();
#endif
-#if defined(USE_AURA) || defined(OS_MACOSX)
+#if defined(USE_AURA) || defined(OS_MACOSX) || defined(USE_EFL)
{
TRACE_EVENT0("shutdown",
"BrowserMainLoop::Subsystem:ImageTransportFactory");
// are ignored. These must explicitly be updated once finished handling the
// ime event.
UpdateSelectionBounds();
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(USE_EFL)
if (guard->show_virtual_keyboard())
ShowVirtualKeyboard();
else
void RenderWidget::DidHandleGestureEvent(const WebGestureEvent& event,
bool event_cancelled) {
-#if defined(OS_ANDROID) || defined(USE_AURA)
+#if defined(OS_ANDROID) || defined(USE_AURA) || defined(USE_EFL)
if (event_cancelled)
return;
if (event.GetType() == WebInputEvent::kGestureTap) {
#if defined(OS_WIN)
const FORMATETC& ToFormatEtc() const { return data_; }
-#elif defined(USE_AURA) || defined(OS_ANDROID) || defined(OS_FUCHSIA)
+#elif defined(USE_AURA) || defined(OS_ANDROID) || defined(OS_FUCHSIA) || defined(USE_EFL)
const std::string& ToString() const { return data_; }
#elif defined(OS_MACOSX)
NSString* ToNSString() const { return data_; }
explicit FormatType(UINT native_format);
FormatType(UINT native_format, LONG index);
FORMATETC data_;
-#elif defined(USE_AURA) || defined(OS_ANDROID) || defined(OS_FUCHSIA)
+#elif defined(USE_AURA) || defined(OS_ANDROID) || defined(OS_FUCHSIA) || defined(USE_EFL)
explicit FormatType(const std::string& native_format);
std::string data_;
#elif defined(OS_MACOSX)
// 'views' and with our Chrome UI code where the elements are also called
// 'views'.
-#if defined(USE_AURA)
+#if defined(USE_AURA) || defined(USE_EFL)
namespace aura {
class Window;
}
enum class CursorType;
class Event;
}
-#endif // defined(USE_AURA)
+#endif // defined(USE_AURA) || defined(USE_EFL)
#if defined(OS_WIN)
typedef struct HFONT__* HFONT;
typedef ui::ViewAndroid* NativeView;
typedef ui::WindowAndroid* NativeWindow;
typedef base::android::ScopedJavaGlobalRef<jobject> NativeEvent;
+#elif defined(USE_EFL)
+typedef ui::Cursor NativeCursor;
+typedef void* NativeView;
+typedef void* NativeWindow;
+typedef SkRegion* NativeRegion;
+typedef ui::Event* NativeEvent;
#else
#error Unknown build environment.
#endif
#endif
// A constant value to indicate that gfx::NativeCursor refers to no cursor.
-#if defined(USE_AURA)
+#if defined(USE_AURA) || defined(USE_EFL)
const ui::CursorType kNullCursor = static_cast<ui::CursorType>(0);
#else
const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL);