|
Add PlatformWindow/Event related code for Ozone X11.
The bigger changes here are to X11EventSource and X11Window. For both
classes the current implementation is for PlatformEvent=XEvent* but with
Ozone PlatformEvent=void*=ui::Event*. Most of the implementation will be
the same between X11 and Ozone X11 otherwise. Both classes have been split
into a shared base class and compile specific implementation.
X11EventSource is now the base class. There were two possible listener
implementations, Glib vs Libevent, with Libevent being unused so far. The
X11 implementation is X11EventSourceGlib and uses Glib. The Ozone X11
implementation is X11EventSourceLibevent and uses Libevent. Since the Ozone
X11 implementation is dispatching ui::Events there is a separate dispatcher
list for XEventDispatchers added to send XEvents where necessary.
X11WindowBase is now the base class. The X11 implementation is still called
X11Window. The X11 Ozone implementation is X11WindowOzone. The X11 Ozone
version registers itself as both a PlatformEventDispatcher and
XEventDispatcher.
Compile with the following gn args:
use_ozone = true
ozone_platform_x11 = true
target_os = "chromeos"
TBR=rockot@chromium.org
BUG= 361137
Committed: https://crrev.com/456fe8e2a64b676531e9d4f24a5268e2523a4d22
Cr-Commit-Position: refs/heads/master@{#374502}
Total comments: 15
Total comments: 12
Total comments: 8
Total comments: 8
Total comments: 6
Total comments: 24
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+894 lines, -544 lines) |
Patch |
 |
M |
chrome/browser/extensions/global_shortcut_listener_x11.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/aura/window_tree_host_x11.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/events/platform/x11/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/events/platform/x11/x11_event_source.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+33 lines, -17 lines |
0 comments
|
Download
|
 |
M |
ui/events/platform/x11/x11_event_source.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+20 lines, -46 lines |
0 comments
|
Download
|
 |
A |
ui/events/platform/x11/x11_event_source_glib.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/platform/x11/x11_event_source_glib.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+45 lines, -46 lines |
0 comments
|
Download
|
 |
A |
ui/events/platform/x11/x11_event_source_libevent.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/platform/x11/x11_event_source_libevent.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+169 lines, -39 lines |
0 comments
|
Download
|
 |
M |
ui/events/platform/x11/x11_events_platform.gyp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/events/x/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/events/x/events_x_utils.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/platform/x11/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/platform/x11/ozone_platform_x11.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/platform_window/x11/BUILD.gn
|
View
|
1
2
3
4
5
8
9
10
11
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/platform_window/x11/x11_window.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -59 lines |
0 comments
|
Download
|
 |
M |
ui/platform_window/x11/x11_window.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
9 chunks |
+21 lines, -284 lines |
0 comments
|
Download
|
 |
M |
ui/platform_window/x11/x11_window.gyp
|
View
|
1
2
3
4
5
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ui/platform_window/x11/x11_window_base.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+30 lines, -20 lines |
0 comments
|
Download
|
 |
A |
ui/platform_window/x11/x11_window_base.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+284 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/platform_window/x11/x11_window_ozone.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/platform_window/x11/x11_window_ozone.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 47 (14 generated)
|