summaryrefslogtreecommitdiffstats
path: root/patches/0001-Build-files-necessary-for-touch-and-gestures.patch
blob: db04322dfc8ef9eb9d5f583374ee3d12e528fe7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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