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

Issue 7464027: Wayland support for views. views_desktop on Wayland. (Closed)

Created:
9 years, 5 months ago by dnicoara
Modified:
9 years, 4 months ago
CC:
chromium-reviews, dhollowa
Visibility:
Public.

Description

Wayland support for views. views_desktop on Wayland. This CL depends on: * http://codereview.chromium.org/7457023 * http://codereview.chromium.org/7467007 * http://codereview.chromium.org/7473010 Wayland requires newer libraries than Ubuntu currently provides. I've created a list of required dependencies: https://sites.google.com/a/google.com/chrome_on_wayland/home/wayland-build-dependencies BUG= TEST=Built Chrome to verify that Wayland dependencies and changes don't interfere with the usual build. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98453

Patch Set 1 #

Patch Set 2 : Replaced the WaylandDisplay singleton with getting it from the native display #

Patch Set 3 : Updated files to latest and fixed changes for dependent CLs #

Total comments: 7

Patch Set 4 : Merged native_menu_wayland and native_menu_x and styling fixes #

Total comments: 2

Patch Set 5 : Updated to trunk and fixed lint issues #

Patch Set 6 : Updated Wayland scrollbars to using Views in anticipation of Views scrollbar checkin #

Patch Set 7 : Removed unnecessary files #

Patch Set 8 : Updated to trunk to fix merge conflicts #

Patch Set 9 : Fixed merge conflict with trunk #

Patch Set 10 : Updated native_widget_wayland.cc to match compositor changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1674 lines, -611 lines) Patch
M skia/ext/canvas_paint.h View 1 chunk +4 lines, -0 lines 0 comments Download
A skia/ext/canvas_paint_wayland.h View 1 2 3 4 1 chunk +109 lines, -0 lines 0 comments Download
M ui/gfx/rect.h View 1 2 4 chunks +13 lines, -0 lines 0 comments Download
M ui/gfx/rect.cc View 1 2 5 chunks +28 lines, -4 lines 0 comments Download
A views/controls/combobox/native_combobox_wayland.cc View 1 chunk +15 lines, -0 lines 0 comments Download
D views/controls/menu/menu_config_gtk.cc View 1 chunk +0 lines, -29 lines 0 comments Download
A + views/controls/menu/menu_config_linux.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M views/controls/menu/menu_controller.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
D views/controls/menu/menu_image_util_gtk.h View 1 chunk +0 lines, -24 lines 0 comments Download
D views/controls/menu/menu_image_util_gtk.cc View 1 chunk +0 lines, -115 lines 0 comments Download
A + views/controls/menu/menu_image_util_linux.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
A + views/controls/menu/menu_image_util_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
D views/controls/menu/menu_item_view_gtk.cc View 1 2 3 4 1 chunk +0 lines, -141 lines 0 comments Download
A + views/controls/menu/menu_item_view_linux.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D views/controls/menu/menu_separator_gtk.cc View 1 chunk +0 lines, -24 lines 0 comments Download
A + views/controls/menu/menu_separator_linux.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + views/controls/menu/native_menu_linux.h View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download
A + views/controls/menu/native_menu_linux.cc View 1 2 3 4 5 9 chunks +21 lines, -21 lines 0 comments Download
D views/controls/menu/native_menu_x.h View 1 2 3 4 5 1 chunk +0 lines, -59 lines 0 comments Download
D views/controls/menu/native_menu_x.cc View 1 2 3 4 5 1 chunk +0 lines, -168 lines 0 comments Download
A views/controls/native/native_view_host_wayland.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A views/controls/scrollbar/native_scroll_bar_wayland.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A views/controls/textfield/native_textfield_wayland.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M views/desktop/desktop_main.cc View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
M views/desktop/desktop_window_view.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
A views/events/event_wayland.cc View 1 2 3 4 1 chunk +215 lines, -0 lines 0 comments Download
M views/focus/accelerator_handler.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
A views/focus/accelerator_handler_wayland.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A views/ime/input_method_wayland.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A views/ime/input_method_wayland.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
A views/metrics_wayland.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M views/mouse_watcher.cc View 1 2 3 3 chunks +21 lines, -1 line 0 comments Download
M views/native_types.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
A views/view_wayland.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M views/views.gyp View 1 2 3 4 5 6 7 8 16 chunks +37 lines, -9 lines 0 comments Download
A views/widget/native_widget_wayland.h View 1 2 3 4 1 chunk +204 lines, -0 lines 0 comments Download
A views/widget/native_widget_wayland.cc View 1 2 3 4 5 6 7 8 9 1 chunk +677 lines, -0 lines 0 comments Download
M views/widget/tooltip_manager_views.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M views/widget/tooltip_manager_views.cc View 1 2 3 chunks +20 lines, -0 lines 0 comments Download
M views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sadrul
Very nice! Left some comments. http://codereview.chromium.org/7464027/diff/4001/views/controls/menu/native_menu_wayland.h File views/controls/menu/native_menu_wayland.h (right): http://codereview.chromium.org/7464027/diff/4001/views/controls/menu/native_menu_wayland.h#newcode5 views/controls/menu/native_menu_wayland.h:5: #ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_WAYLAND_H_ Is there ...
9 years, 4 months ago (2011-08-15 14:50:23 UTC) #1
oshima_google
Menu2 will be removed soon (there are one or two usage remained i think), so ...
9 years, 4 months ago (2011-08-15 16:32:37 UTC) #2
dnicoara
With regards to Sadrul's comments, I've posted messages inlined bellow. With regards to Oshima's comment, ...
9 years, 4 months ago (2011-08-15 17:23:13 UTC) #3
Ben Goodger (Google)
High level looks OK. http://codereview.chromium.org/7464027/diff/9003/views/controls/scrollbar/native_scroll_bar_wayland.h File views/controls/scrollbar/native_scroll_bar_wayland.h (right): http://codereview.chromium.org/7464027/diff/9003/views/controls/scrollbar/native_scroll_bar_wayland.h#newcode5 views/controls/scrollbar/native_scroll_bar_wayland.h:5: #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WAYLAND_H_ qq: won't Wayland ...
9 years, 4 months ago (2011-08-16 17:58:45 UTC) #4
dnicoara
Right, but we don't have a views scrollbar at the moment. I'm working on getting ...
9 years, 4 months ago (2011-08-16 18:57:26 UTC) #5
sadrul
9 years, 4 months ago (2011-08-22 18:44:11 UTC) #6
LGTM.

http://codereview.chromium.org/7464027/diff/9003/skia/ext/canvas_paint_wayland.h
File skia/ext/canvas_paint_wayland.h (right):

http://codereview.chromium.org/7464027/diff/9003/skia/ext/canvas_paint_waylan...
skia/ext/canvas_paint_wayland.h:21: explicit CanvasPaintT(cairo_surface_t*
cairo_window_surface,
Remove 'explicit'

Powered by Google App Engine
This is Rietveld 408576698