summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-02-20 17:53:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-21 16:00:48 +0100
commit4b83c0024fea46f3d9ebb21d3002024bcf8c0dce (patch)
treef1e369e87dad16c1b3be52b4de073198881c9d0f /patches
parenta520feabeb9d44bbd97b3491402852f238af90e8 (diff)
Add the Mac debug build fix to patch files
Put it together with the change that enabled the build of event.cc. Also update the 3rdparty submodule. Change-Id: I98bea50d053a108e765c890e55f3886fea5f4e93 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'patches')
-rw-r--r--patches/chromium/0006-Build-files-necessary-for-touch-and-gestures.patch48
1 files changed, 45 insertions, 3 deletions
diff --git a/patches/chromium/0006-Build-files-necessary-for-touch-and-gestures.patch b/patches/chromium/0006-Build-files-necessary-for-touch-and-gestures.patch
index 14b4c2239..35d5c6579 100644
--- a/patches/chromium/0006-Build-files-necessary-for-touch-and-gestures.patch
+++ b/patches/chromium/0006-Build-files-necessary-for-touch-and-gestures.patch
@@ -5,10 +5,13 @@ Subject: 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.
+
+Change-Id: Ib7bb4fb1fc8692df1b8151c3d159de3d0f73c76f
---
- content/content_browser.gypi | 2 +-
- ui/ui.gyp | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
+ content/content_browser.gypi | 2 +-
+ ui/events/event.cc | 14 ++++++++++++--
+ ui/ui.gyp | 4 ++--
+ 3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/content/content_browser.gypi b/content/content_browser.gypi
index 1e3485c..c2e5f18 100644
@@ -23,6 +26,45 @@ index 1e3485c..c2e5f18 100644
'sources!': [
'browser/renderer_host/input/touchscreen_tap_suppression_controller.cc',
'browser/renderer_host/ui_events_helper.cc',
+diff --git a/ui/events/event.cc b/ui/events/event.cc
+index 7c3e6d5..7153607 100644
+--- a/ui/events/event.cc
++++ b/ui/events/event.cc
+@@ -294,7 +294,13 @@ void LocatedEvent::UpdateForRootTransform(
+ MouseEvent::MouseEvent(const base::NativeEvent& native_event)
+ : LocatedEvent(native_event),
+ changed_button_flags_(
+- GetChangedMouseButtonFlagsFromNative(native_event)) {
++// GetChangedMouseButtonFlagsFromNative isn't implemented on Mac. MouseEvent shouldn't be used.
++#if !defined(OS_MACOSX)
++ GetChangedMouseButtonFlagsFromNative(native_event)
++#else
++ 0
++#endif
++ ) {
+ if (type() == ET_MOUSE_PRESSED || type() == ET_MOUSE_RELEASED)
+ SetClickCount(GetRepeatCount(*this));
+ }
+@@ -698,6 +704,8 @@ DropTargetEvent::DropTargetEvent(const OSExchangeData& data,
+
+ ScrollEvent::ScrollEvent(const base::NativeEvent& native_event)
+ : MouseEvent(native_event) {
++// GetScrollOffsets and GetFlingData aren't implemented on Mac. ScrollEvent shouldn't be used.
++#if !defined(OS_MACOSX)
+ if (type() == ET_SCROLL) {
+ GetScrollOffsets(native_event,
+ &x_offset_, &y_offset_,
+@@ -709,7 +717,9 @@ ScrollEvent::ScrollEvent(const base::NativeEvent& native_event)
+ &x_offset_, &y_offset_,
+ &x_offset_ordinal_, &y_offset_ordinal_,
+ NULL);
+- } else {
++ } else
++#endif
++ {
+ NOTREACHED() << "Unexpected event type " << type()
+ << " when constructing a ScrollEvent.";
+ }
diff --git a/ui/ui.gyp b/ui/ui.gyp
index 09c011c..4716f6c 100644
--- a/ui/ui.gyp