summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-07-31 12:49:02 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-01 12:20:37 +0200
commitf3db445d66924153905997c91f6aa4b36e787ea7 (patch)
tree5200f7aa13796e1e56d861bad09a67324f045495 /patches
parent6bce05748e7ff25f2e487357e3fa40b5943ec664 (diff)
Transform QTouchEvent into ui::TouchEvent first.
WebTouchEvents have a slightly different behavior than QTouchEvent in that the type of the event is TouchStart for each new point press, while Qt sends a TouchBegin only for the first point press. Since we already need to use ui::TouchEvent to be able to use ui::GestureRecognizer, always do this conversion first to also let UpdateWebTouchEventAfterDispatch chose the proper event type. Some of the code from render_widget_host_view_aura.cc was copied into render_widget_host_view_qt.cpp to fill the needed functionality. Change-Id: Iab1ca0c449b5256a39b5479ce89b662d4e133935 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'patches')
-rw-r--r--patches/0001-Build-files-necessary-for-touch-and-gestures.patch67
-rwxr-xr-xpatches/patch-chromium.sh1
2 files changed, 68 insertions, 0 deletions
diff --git a/patches/0001-Build-files-necessary-for-touch-and-gestures.patch b/patches/0001-Build-files-necessary-for-touch-and-gestures.patch
new file mode 100644
index 000000000..db04322df
--- /dev/null
+++ b/patches/0001-Build-files-necessary-for-touch-and-gestures.patch
@@ -0,0 +1,67 @@
+From 883f355400eb42d8c8ed1b3094b06055941a6932 Mon Sep 17 00:00:00 2001
+From: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
+Date: Thu, 25 Jul 2013 17:25:47 +0200
+Subject: [PATCH] Build files necessary for touch and gestures.
+
+Also guard the use of MessagePumpAuraX11 in events_x.cc. We need to
+build it to get symbols depending on base::NativeEvent.
+---
+ content/content_browser.gypi | 2 +-
+ ui/base/x/events_x.cc | 4 ++++
+ ui/ui.gyp | 4 ++--
+ 3 files changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/content/content_browser.gypi b/content/content_browser.gypi
+index a985d0b..091b425 100644
+--- a/content/content_browser.gypi
++++ b/content/content_browser.gypi
+@@ -1389,7 +1389,7 @@
+ ['exclude', '^browser/geolocation/wifi_data_provider_linux\\.cc$'],
+ ],
+ }],
+- ['use_aura!=1 and OS!="win"', {
++ ['use_aura!=1 and use_qt!=1 and OS!="win"', {
+ 'sources!': [
+ 'browser/renderer_host/ui_events_helper.cc',
+ 'browser/renderer_host/ui_events_helper.h',
+diff --git a/ui/base/x/events_x.cc b/ui/base/x/events_x.cc
+index cfed6ce..f50cfa5 100644
+--- a/ui/base/x/events_x.cc
++++ b/ui/base/x/events_x.cc
+@@ -273,7 +273,11 @@ double GetTouchParamFromXEvent(XEvent* xev,
+
+ Atom GetNoopEventAtom() {
+ return XInternAtom(
++#if defined(USE_AURA)
+ base::MessagePumpAuraX11::GetDefaultXDisplay(),
++#else
++ XOpenDisplay(NULL),
++#endif
+ "noop", False);
+ }
+
+diff --git a/ui/ui.gyp b/ui/ui.gyp
+index a0eff77..bd1e59d 100644
+--- a/ui/ui.gyp
++++ b/ui/ui.gyp
+@@ -687,7 +687,7 @@
+ ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
+ ],
+ }],
+- ['use_aura==0 and toolkit_views==0', {
++ ['use_aura==0 and use_qt==0 and toolkit_views==0', {
+ 'sources/': [
+ ['exclude', '^base/gestures/*'],
+ ]
+@@ -859,7 +859,7 @@
+ 'base/cursor/cursor_loader_null.h',
+ ],
+ }],
+- ['toolkit_views==0', {
++ ['use_qt==0 and toolkit_views==0', {
+ 'sources!': [
+ 'base/events/event.cc',
+ 'base/events/event.h',
+--
+1.8.3
+
diff --git a/patches/patch-chromium.sh b/patches/patch-chromium.sh
index 41f27a992..d1fc7c271 100755
--- a/patches/patch-chromium.sh
+++ b/patches/patch-chromium.sh
@@ -63,6 +63,7 @@ git am $PATCH_DIR/0001-Mac-Use-libc-instead-of-stdlibc.patch
git am $PATCH_DIR/0002-Clang-libc-does-not-support-incomplete-types-in-temp.patch
git am $PATCH_DIR/0001-Mac-Do-not-modify-the-child-path.patch
git am $PATCH_DIR/0001-Do-not-warn-for-header-hygiene.patch
+git am $PATCH_DIR/0001-Build-files-necessary-for-touch-and-gestures.patch
cd $CHROMIUM_SRC_DIR/third_party/WebKit
echo "Entering $PWD"