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

Issue 7457023: Adding a Wayland basic toolkit (Closed)

Created:
9 years, 5 months ago by dnicoara
Modified:
9 years, 4 months ago
Reviewers:
tfarina, msw, Evan Martin, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Adding a Wayland basic toolkit This is essentially a OO wrapper over the Wayland library. It will be used to add Wayland support for Chrome. This was written with the intent of being as standalone as possible and it should not require any external Chrome dependencies. BUG=None TEST=None R=evan@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94492

Patch Set 1 #

Total comments: 2

Patch Set 2 : More comments and Chrome style formatting #

Total comments: 14

Patch Set 3 : Fixed comments, naming, ifdefs, ... #

Patch Set 4 : Removed the WaylandDisplay singleton #

Total comments: 14

Patch Set 5 : Fixed more formatting issues #

Patch Set 6 : removed unused flag #

Total comments: 7

Patch Set 7 : Added everything to ui namespace and fixed code review issues #

Patch Set 8 : Fixed naming for consts #

Total comments: 12

Patch Set 9 : Fixed argument layout #

Total comments: 16

Patch Set 10 : Inlined functions and styling changes #

Total comments: 3

Patch Set 11 : Naming for inlined functions #

Patch Set 12 : Naming for inlined functions #

Total comments: 14

Patch Set 13 : Formatting and moved library deps to system.gyp #

Total comments: 2

Patch Set 14 : Fixed file name ordering #

Patch Set 15 : Moving the common.gypi changes to this CL since this requires them #

Total comments: 2

Patch Set 16 : Updated trunk to HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1569 lines, -0 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +9 lines, -0 lines 0 comments Download
M build/linux/system.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +24 lines, -0 lines 0 comments Download
A ui/wayland/events/wayland_event.h View 1 2 3 4 5 6 7 8 1 chunk +127 lines, -0 lines 0 comments Download
A ui/wayland/wayland.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
A ui/wayland/wayland_buffer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A ui/wayland/wayland_buffer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
A ui/wayland/wayland_cursor.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
A ui/wayland/wayland_cursor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +76 lines, -0 lines 0 comments Download
A ui/wayland/wayland_display.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +105 lines, -0 lines 0 comments Download
A ui/wayland/wayland_display.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +158 lines, -0 lines 0 comments Download
A ui/wayland/wayland_input_device.h View 1 2 3 4 5 6 7 8 9 1 chunk +123 lines, -0 lines 0 comments Download
A ui/wayland/wayland_input_device.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +211 lines, -0 lines 0 comments Download
A ui/wayland/wayland_message_pump.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +63 lines, -0 lines 0 comments Download
A ui/wayland/wayland_message_pump.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +78 lines, -0 lines 0 comments Download
A ui/wayland/wayland_screen.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +79 lines, -0 lines 0 comments Download
A ui/wayland/wayland_screen.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +78 lines, -0 lines 0 comments Download
A ui/wayland/wayland_shm_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +39 lines, -0 lines 0 comments Download
A ui/wayland/wayland_shm_buffer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +65 lines, -0 lines 0 comments Download
A ui/wayland/wayland_widget.h View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
A ui/wayland/wayland_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +87 lines, -0 lines 0 comments Download
A ui/wayland/wayland_window.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Evan Martin
Here are some high-level comments (mostly style stuff): - Every class, function, and member variable ...
9 years, 5 months ago (2011-07-21 16:37:56 UTC) #1
dnicoara
Overall I went over all the code and added more comments. Hopefully it makes it ...
9 years, 5 months ago (2011-07-22 18:00:46 UTC) #2
Evan Martin
I'm really really sorry to nitpick every last bit of whitespace, but this kind of ...
9 years, 5 months ago (2011-07-22 18:21:22 UTC) #3
dnicoara
On 2011/07/22 18:21:22, Evan Martin wrote: > I'm really really sorry to nitpick every last ...
9 years, 5 months ago (2011-07-22 20:45:26 UTC) #4
Evan Martin
This is starting to look really good. Do you happen to have a pointer to ...
9 years, 5 months ago (2011-07-22 21:08:54 UTC) #5
Evan Martin
9 years, 5 months ago (2011-07-22 21:09:22 UTC) #6
dnicoara
I was actually thinking of having all this Wayland code under a wayland namespace. Maybe ...
9 years, 5 months ago (2011-07-22 22:17:31 UTC) #7
Evan Martin
This LGTM, I just have some minor remaining nits you can fix at your lesiure ...
9 years, 5 months ago (2011-07-22 22:41:45 UTC) #8
Evan Martin
Oh and regarding the namespace, we can keep it in mind and do it if ...
9 years, 5 months ago (2011-07-22 22:42:11 UTC) #9
tfarina
On 2011/07/22 22:42:11, Evan Martin wrote: > Oh and regarding the namespace, we can keep ...
9 years, 5 months ago (2011-07-22 22:59:30 UTC) #10
tfarina
http://codereview.chromium.org/7457023/diff/4006/ui/wayland/wayland_cursor.h File ui/wayland/wayland_cursor.h (right): http://codereview.chromium.org/7457023/diff/4006/ui/wayland/wayland_cursor.h#newcode17 ui/wayland/wayland_cursor.h:17: enum WaylandCursorType { I think just Type is enough. ...
9 years, 5 months ago (2011-07-22 23:06:45 UTC) #11
dnicoara
I've added the ui namespace and fixed the mentioned issues.
9 years, 5 months ago (2011-07-25 15:58:50 UTC) #12
Evan Martin
LGTM+= http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h File ui/wayland/events/wayland_event.h (right): http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h#newcode13 ui/wayland/events/wayland_event.h:13: // events are processed. Missing )
9 years, 5 months ago (2011-07-25 16:16:01 UTC) #13
Evan Martin
On 2011/07/25 16:16:01, Evan Martin wrote: > LGTM+= LGTM++ rather > > http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h > File ...
9 years, 5 months ago (2011-07-25 16:16:09 UTC) #14
tfarina
http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h File ui/wayland/events/wayland_event.h (right): http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h#newcode32 ui/wayland/events/wayland_event.h:32: typedef enum { No need of typedef in C++ ...
9 years, 5 months ago (2011-07-25 16:27:13 UTC) #15
dnicoara
On 2011/07/25 16:27:13, tfarina wrote: > http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h > File ui/wayland/events/wayland_event.h (right): > > http://codereview.chromium.org/7457023/diff/11004/ui/wayland/events/wayland_event.h#newcode32 > ...
9 years, 5 months ago (2011-07-25 18:03:43 UTC) #16
tfarina
More style nits below. It's almost OK to me though. http://codereview.chromium.org/7457023/diff/12001/ui/wayland/wayland_display.cc File ui/wayland/wayland_display.cc (right): http://codereview.chromium.org/7457023/diff/12001/ui/wayland/wayland_display.cc#newcode68 ...
9 years, 5 months ago (2011-07-25 18:34:27 UTC) #17
dnicoara
Done. I've inlined a couple of comments bellow. On 2011/07/25 18:34:27, tfarina wrote: > More ...
9 years, 5 months ago (2011-07-25 19:22:51 UTC) #18
tfarina
http://codereview.chromium.org/7457023/diff/16003/ui/wayland/wayland_buffer.h File ui/wayland/wayland_buffer.h (right): http://codereview.chromium.org/7457023/diff/16003/ui/wayland/wayland_buffer.h#newcode21 ui/wayland/wayland_buffer.h:21: WaylandBuffer() {} I think it's fine, but I prefer ...
9 years, 5 months ago (2011-07-25 21:10:09 UTC) #19
tfarina
http://codereview.chromium.org/7457023/diff/16003/ui/wayland/wayland_screen.cc File ui/wayland/wayland_screen.cc (right): http://codereview.chromium.org/7457023/diff/16003/ui/wayland/wayland_screen.cc#newcode16 ui/wayland/wayland_screen.cc:16: static const wl_output_listener kOutputListener = { I mean, the ...
9 years, 5 months ago (2011-07-25 21:11:46 UTC) #20
dnicoara
On 2011/07/25 21:10:09, tfarina wrote: > http://codereview.chromium.org/7457023/diff/16003/ui/wayland/wayland_buffer.h > File ui/wayland/wayland_buffer.h (right): > > http://codereview.chromium.org/7457023/diff/16003/ui/wayland/wayland_buffer.h#newcode21 > ...
9 years, 5 months ago (2011-07-26 13:14:15 UTC) #21
tfarina
It LG to me, minus the gyp stuff yet. http://codereview.chromium.org/7457023/diff/28001/ui/wayland/wayland.gyp File ui/wayland/wayland.gyp (right): http://codereview.chromium.org/7457023/diff/28001/ui/wayland/wayland.gyp#newcode9 ui/wayland/wayland.gyp:9: ...
9 years, 5 months ago (2011-07-26 14:36:50 UTC) #22
tfarina
http://codereview.chromium.org/7457023/diff/28001/ui/wayland/wayland_cursor.h File ui/wayland/wayland_cursor.h (right): http://codereview.chromium.org/7457023/diff/28001/ui/wayland/wayland_cursor.h#newcode24 ui/wayland/wayland_cursor.h:24: WaylandCursor(WaylandDisplay* display); please add a explicit here. http://codereview.chromium.org/7457023/diff/28001/ui/wayland/wayland_message_pump.h File ...
9 years, 5 months ago (2011-07-26 14:49:27 UTC) #23
dnicoara
On 2011/07/26 14:36:50, tfarina wrote: > It LG to me, minus the gyp stuff yet. ...
9 years, 5 months ago (2011-07-26 16:07:08 UTC) #24
tfarina
The wayland.gyp now LGTM. Thanks. http://codereview.chromium.org/7457023/diff/27003/build/linux/system.gyp File build/linux/system.gyp (right): http://codereview.chromium.org/7457023/diff/27003/build/linux/system.gyp#newcode472 build/linux/system.gyp:472: '<!@(<(pkg-config) --cflags cairo wayland-client ...
9 years, 5 months ago (2011-07-26 16:14:41 UTC) #25
dnicoara
On 2011/07/26 16:14:41, tfarina wrote: > The wayland.gyp now LGTM. Thanks. > > http://codereview.chromium.org/7457023/diff/27003/build/linux/system.gyp > ...
9 years, 5 months ago (2011-07-26 16:47:52 UTC) #26
sky
As Evan reviewed this I'm not going to review it all. I do have one ...
9 years, 5 months ago (2011-07-27 15:56:11 UTC) #27
sky
One more question. Is the goal to implement a NativeWidgetWayland on top of these classes? ...
9 years, 5 months ago (2011-07-27 16:06:02 UTC) #28
dnicoara
Regarding your event question, I'm not sure how much improvement that would bring, in the ...
9 years, 5 months ago (2011-07-27 17:30:23 UTC) #29
sky
On Wed, Jul 27, 2011 at 10:30 AM, <dnicoara@chromium.org> wrote: > Regarding your event question, ...
9 years, 5 months ago (2011-07-27 20:26:49 UTC) #30
Evan Martin
On Wed, Jul 27, 2011 at 1:26 PM, Scott Violet <sky@chromium.org> wrote: > On Wed, ...
9 years, 5 months ago (2011-07-27 20:50:11 UTC) #31
dnicoara
On 2011/07/27 20:50:11, Evan Martin wrote: > On Wed, Jul 27, 2011 at 1:26 PM, ...
9 years, 4 months ago (2011-07-27 21:11:17 UTC) #32
msw
Yes, it these "native" WaylandEvents are akin to those provided in GTK/X/Win with GDKEvents/XEvent/MSG. I'm ...
9 years, 4 months ago (2011-07-27 21:52:02 UTC) #33
dnicoara
On 2011/07/27 21:52:02, msw wrote: > http://codereview.chromium.org/7457023/diff/30028/ui/wayland/events/wayland_event.h > File ui/wayland/events/wayland_event.h (right): > > http://codereview.chromium.org/7457023/diff/30028/ui/wayland/events/wayland_event.h#newcode46 > ...
9 years, 4 months ago (2011-07-27 22:36:15 UTC) #34
sky
On Wed, Jul 27, 2011 at 2:11 PM, <dnicoara@chromium.org> wrote: > On 2011/07/27 20:50:11, Evan ...
9 years, 4 months ago (2011-07-28 00:37:30 UTC) #35
commit-bot: I haz the power
9 years, 4 months ago (2011-07-28 17:38:26 UTC) #36
Change committed as 94492

Powered by Google App Engine
This is Rietveld 408576698