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

Issue 2786983003: [aura-mus] Add ui::CursorData, with mojo serialization. (Closed)

Created:
3 years, 8 months ago by Elliot Glaysher
Modified:
3 years, 8 months ago
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, dcheng, kalyank, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[aura-mus] Add ui::CursorData, with mojo serialization. This creates a new ui::CursorData class which is a cross-platform way of moving cursor descriptions over a mojo pipe. This maps to the new ui.mojom.CursorData struct via added type traits. Finally, adds unit tests for serialization. BUG=705037 Review-Url: https://codereview.chromium.org/2786983003 Cr-Commit-Position: refs/heads/master@{#461801} Committed: https://chromium.googlesource.com/chromium/src/+/0c80ac5421d4b7f81595b525163d54b686ca8785

Patch Set 1 #

Total comments: 1

Patch Set 2 : Enhance the test and comment mojom. #

Total comments: 20

Patch Set 3 : everybody comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -73 lines) Patch
M ash/mus/move_event_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/simple_wm/move_event_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/interfaces/BUILD.gn View 1 2 4 chunks +4 lines, -1 line 0 comments Download
D services/ui/public/interfaces/cursor.mojom View 1 chunk +0 lines, -57 lines 0 comments Download
A services/ui/public/interfaces/cursor/BUILD.gn View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/OWNERS View 1 chunk +8 lines, -0 lines 0 comments Download
A + services/ui/public/interfaces/cursor/cursor.mojom View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/cursor.typemap View 1 chunk +19 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/cursor_struct_traits.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/cursor_struct_traits.cc View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc View 1 2 1 chunk +106 lines, -0 lines 0 comments Download
A services/ui/public/interfaces/cursor/typemaps.gni View 1 chunk +5 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/display.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/drag_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/drag_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/drag_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/event_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/platform_display.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/server_window_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/test_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/window_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/base/cursor/cursor_data.h View 1 2 1 chunk +96 lines, -0 lines 0 comments Download
A ui/base/cursor/cursor_data.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
Elliot Glaysher
tsepez: new struct CursorData in the moved cursor.mojom, otherwise just moves and testing. sky: main ...
3 years, 8 months ago (2017-03-30 22:53:33 UTC) #6
bungeman-skia
reed and bsalomon are probably better api reviewers for this, though I'm sure they won't ...
3 years, 8 months ago (2017-03-31 03:10:59 UTC) #10
sky
https://codereview.chromium.org/2786983003/diff/20001/services/ui/public/interfaces/cursor/cursor.mojom File services/ui/public/interfaces/cursor/cursor.mojom (right): https://codereview.chromium.org/2786983003/diff/20001/services/ui/public/interfaces/cursor/cursor.mojom#newcode65 services/ui/public/interfaces/cursor/cursor.mojom:65: CursorType native_type; cursor_type? https://codereview.chromium.org/2786983003/diff/20001/services/ui/public/interfaces/cursor/cursor.mojom#newcode71 services/ui/public/interfaces/cursor/cursor.mojom:71: gfx.mojom.Point hotspot; Is this ...
3 years, 8 months ago (2017-03-31 04:57:58 UTC) #11
Tom Sepez
LGTM with question https://codereview.chromium.org/2786983003/diff/20001/services/ui/public/interfaces/cursor/cursor.mojom File services/ui/public/interfaces/cursor/cursor.mojom (right): https://codereview.chromium.org/2786983003/diff/20001/services/ui/public/interfaces/cursor/cursor.mojom#newcode74 services/ui/public/interfaces/cursor/cursor.mojom:74: skia.mojom.BitmapArray cursor_frames; Arbitrarily deep? Not sure ...
3 years, 8 months ago (2017-03-31 16:07:07 UTC) #12
bsalomon
On 2017/03/31 03:10:59, bungeman-skia wrote: > reed and bsalomon are probably better api reviewers for ...
3 years, 8 months ago (2017-03-31 16:25:10 UTC) #13
Elliot Glaysher
ptal On 2017/03/31 16:25:10, bsalomon wrote: > Is it possible to use SkImage instead of ...
3 years, 8 months ago (2017-03-31 21:18:16 UTC) #16
sky
LGTM
3 years, 8 months ago (2017-03-31 23:40:53 UTC) #19
Elliot Glaysher
ping bsalomon
3 years, 8 months ago (2017-04-04 17:09:10 UTC) #20
bsalomon
lgtm
3 years, 8 months ago (2017-04-04 17:21:59 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786983003/40001
3 years, 8 months ago (2017-04-04 17:28:26 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/241837) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 8 months ago (2017-04-04 17:43:08 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786983003/40001
3 years, 8 months ago (2017-04-04 17:46:13 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 19:26:15 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0c80ac5421d4b7f81595b525163d...

Powered by Google App Engine
This is Rietveld 408576698