Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Issue 8378005: wayland: define base:NativeEvent for Wayland (Closed)

Created:
9 years, 1 month ago by Mandeep Singh Baines
Modified:
9 years, 1 month ago
CC:
chromium-reviews, brettw-cc_chromium.org, Elliot Glaysher, saintlou, dnicoara
Visibility:
Public.

Description

wayland: define base:NativeEvent for Wayland Fixes the use_wayland build which was broken by this commit: http://codereview.chromium.org/8113028 Similar to win, we create a wayland namespace inside base and define WaylandEvent there. Historical note: Wayland does not have a "native" event structure. Instead, the client is made aware of events via a callback executed in the context of display_run(): http://git.chromium.org/gitweb/?p=chromiumos/third_party/wayland-demos.git;a=blob;f=clients/window.c So we create WaylandEvent structure which takes the parameters from the callback and wraps them into a structure. For details, see: src/ui/wayland/events/wayland_event.h BUG=chromium:102903 TEST=Compiles but doesn't yet link with this change plus a series of others I'm working on. R=msw@chromium.org,oshima@chromium.org,mark@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109932

Patch Set 1 #

Total comments: 2

Patch Set 2 : Create a new wayland namespace in base and define WaylandEvent there. #

Total comments: 13

Patch Set 3 : Fix per reviewer feedback. #

Total comments: 2

Patch Set 4 : Fix per feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -202 lines) Patch
M base/base.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/event_types.h View 1 2 chunks +5 lines, -8 lines 0 comments Download
M base/message_pump_wayland.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M base/message_pump_wayland.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + base/wayland/wayland_event.h View 1 4 chunks +7 lines, -17 lines 0 comments Download
M ui/base/wayland/events_wayland.cc View 1 2 3 2 chunks +20 lines, -2 lines 0 comments Download
D ui/wayland/events/wayland_event.h View 1 1 chunk +0 lines, -127 lines 0 comments Download
M ui/wayland/wayland.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/wayland/wayland_input_device.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M ui/wayland/wayland_widget.h View 1 2 2 chunks +11 lines, -7 lines 0 comments Download
M ui/wayland/wayland_window.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M views/controls/menu/menu_controller.h View 1 1 chunk +1 line, -1 line 0 comments Download
M views/controls/menu/menu_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M views/focus/accelerator_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M views/focus/accelerator_handler_wayland.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M views/mouse_watcher.cc View 1 3 chunks +4 lines, -7 lines 0 comments Download
M views/widget/native_widget_wayland.h View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M views/widget/native_widget_wayland.cc View 1 6 chunks +9 lines, -7 lines 0 comments Download
M views/widget/tooltip_manager_views.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M views/widget/tooltip_manager_views.cc View 1 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
oshima
http://codereview.chromium.org/8378005/diff/1/base/event_types.h File base/event_types.h (right): http://codereview.chromium.org/8378005/diff/1/base/event_types.h#newcode17 base/event_types.h:17: #elif defined(USE_X11) base cannot depend on ui, or has ...
9 years, 1 month ago (2011-11-04 01:18:31 UTC) #1
Elliot Glaysher
http://codereview.chromium.org/8378005/diff/1/base/event_types.h File base/event_types.h (right): http://codereview.chromium.org/8378005/diff/1/base/event_types.h#newcode17 base/event_types.h:17: #elif defined(USE_X11) On 2011/11/04 01:18:31, oshima wrote: > base ...
9 years, 1 month ago (2011-11-04 01:20:23 UTC) #2
Mandeep Singh Baines
Fixed. Create a wayland namespace inside base. Similar to base::win there is now a base::wayland. ...
9 years, 1 month ago (2011-11-10 00:32:31 UTC) #3
sky
I only looked at ui and views. http://codereview.chromium.org/8378005/diff/5001/views/widget/native_widget_wayland.h File views/widget/native_widget_wayland.h (right): http://codereview.chromium.org/8378005/diff/5001/views/widget/native_widget_wayland.h#newcode25 views/widget/native_widget_wayland.h:25: using base::wayland::WaylandEvent; ...
9 years, 1 month ago (2011-11-10 00:52:42 UTC) #4
dnicoara
lgtm Wayland changes look good.
9 years, 1 month ago (2011-11-10 01:13:32 UTC) #5
Mark Mentovai
http://codereview.chromium.org/8378005/diff/5001/base/message_pump_wayland.cc File base/message_pump_wayland.cc (right): http://codereview.chromium.org/8378005/diff/5001/base/message_pump_wayland.cc#newcode6 base/message_pump_wayland.cc:6: #include "base/wayland/wayland_event.h" This needs to follow system #includes, like ...
9 years, 1 month ago (2011-11-10 04:40:07 UTC) #6
oshima
I believe we want to support Wayland on aura, in which case, you can simply ...
9 years, 1 month ago (2011-11-10 16:13:37 UTC) #7
saintlou
Yes supporting Wayland on Aura is in my mind more important than Wayland on non-Aura ...
9 years, 1 month ago (2011-11-10 18:12:44 UTC) #8
Elliot Glaysher
lgtm from a linuxgtk POV. Most of this code looks like it's designed to run ...
9 years, 1 month ago (2011-11-11 18:23:54 UTC) #9
Mandeep Singh Baines
Fixed. PTAL. Yes, eventual goal of this work is to target aura. http://codereview.chromium.org/8378005/diff/5001/base/message_pump_wayland.cc File base/message_pump_wayland.cc ...
9 years, 1 month ago (2011-11-11 19:26:51 UTC) #10
sky
ui/views LGTM
9 years, 1 month ago (2011-11-11 20:04:44 UTC) #11
oshima
>I believe we want to support Wayland on aura, in which case, >you can simply ...
9 years, 1 month ago (2011-11-11 20:36:53 UTC) #12
Mandeep Singh Baines
Fixed. PTAL. I want to get the aura port functional before I tear down the ...
9 years, 1 month ago (2011-11-11 23:40:30 UTC) #13
oshima
LGTM
9 years, 1 month ago (2011-11-12 00:21:02 UTC) #14
Mandeep Singh Baines
ping Still need an LGTM for base.
9 years, 1 month ago (2011-11-14 17:25:09 UTC) #15
Mark Mentovai
LGTM in base for OWNERS approval. I only reviewed the files in base.
9 years, 1 month ago (2011-11-14 17:29:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msb@chromium.org/8378005/20003
9 years, 1 month ago (2011-11-14 17:55:38 UTC) #17
commit-bot: I haz the power
9 years, 1 month ago (2011-11-14 19:23:48 UTC) #18
Change committed as 109932

Powered by Google App Engine
This is Rietveld 408576698