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

Issue 2798883003: [ozone,views-mus] Build CursorDataFactoryOzone. (Closed)

Created:
3 years, 8 months ago by Elliot Glaysher
Modified:
3 years, 8 months ago
Reviewers:
jam, sadrul
CC:
chromium-reviews, kalyank, sadrul, tfarina, ozone-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ozone,views-mus] Build CursorDataFactoryOzone. This class is-a CursorFactoryOzone. It takes data from WebCursor and parses it into a ui::CursorData, which is exposes through PlatformCursor. The views layer has access to PlatformCursor and can transmit this data to a remote process. [Next patch: modify the mus bindings to take CursorData instead of a CursorType.] BUG=705037 Review-Url: https://codereview.chromium.org/2798883003 Cr-Commit-Position: refs/heads/master@{#465325} Committed: https://chromium.googlesource.com/chromium/src/+/d05afac1ecd0d9808289a7151dcb68ae18940852

Patch Set 1 #

Patch Set 2 : Fix gn check #

Patch Set 3 : Maybe fix windows deps. #

Patch Set 4 : Fix linux desktop compile. #

Patch Set 5 : Pass the dpi around, too. #

Patch Set 6 : [xxx] don't commit this revision; busted. #

Patch Set 7 : Now without an OzonePlatform. #

Patch Set 8 : mus does not imply ozone. #

Patch Set 9 : More ozone code gets ifdefed #

Patch Set 10 : Further completion. #

Total comments: 9

Patch Set 11 : sadrul comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -23 lines) Patch
M components/exo/pointer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/common/cursors/webcursor_ozone.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/cursor/cursor_loader_ozone.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h View 1 2 3 4 1 chunk +6 lines, -5 lines 0 comments Download
M ui/base/cursor/ozone/bitmap_cursor_factory_ozone.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
A ui/base/cursor/ozone/cursor_data_factory_ozone.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +91 lines, -0 lines 0 comments Download
A ui/base/cursor/ozone/cursor_data_factory_ozone.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +108 lines, -0 lines 0 comments Download
M ui/ozone/platform/x11/x11_cursor_factory_ozone.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M ui/ozone/platform/x11/x11_cursor_factory_ozone.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M ui/ozone/public/cursor_factory_ozone.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M ui/ozone/public/cursor_factory_ozone.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (44 generated)
Elliot Glaysher
this patch continues to thread CursorData from the renderer through the mus using browser process ...
3 years, 8 months ago (2017-04-13 22:58:17 UTC) #36
jam
On 2017/04/13 22:58:17, Elliot Glaysher wrote: > this patch continues to thread CursorData from the ...
3 years, 8 months ago (2017-04-13 23:12:57 UTC) #37
sadrul
lgtm https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/cursor_data_factory_ozone.cc File ui/base/cursor/ozone/cursor_data_factory_ozone.cc (right): https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/cursor_data_factory_ozone.cc#newcode20 ui/base/cursor/ozone/cursor_data_factory_ozone.cc:20: ozone->AssertIsACusrorDataOzone(); Should the magic cookie/assertions be behind DCHECK_IS_ON()? ...
3 years, 8 months ago (2017-04-18 17:04:59 UTC) #38
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/2798883003/200001
3 years, 8 months ago (2017-04-18 19:18:08 UTC) #45
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/d05afac1ecd0d9808289a7151dcb68ae18940852
3 years, 8 months ago (2017-04-18 19:24:16 UTC) #48
sadrul
Oh btw: update the CL title please? (because everytime I see OzonePlatformMus, I go 'oh ...
3 years, 8 months ago (2017-04-18 20:10:37 UTC) #49
Elliot Glaysher
done, but that probably doesn't matter since it was committed. (Why do we even have ...
3 years, 8 months ago (2017-04-18 20:11:58 UTC) #51
Elliot Glaysher
3 years, 8 months ago (2017-04-18 20:11:59 UTC) #52
Message was sent while issue was closed.
done, but that probably doesn't matter since it was committed.

(Why do we even have subjects anyway? They go stale in most patches that I do.)

https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/c...
File ui/base/cursor/ozone/cursor_data_factory_ozone.cc (right):

https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/c...
ui/base/cursor/ozone/cursor_data_factory_ozone.cc:20:
ozone->AssertIsACusrorDataOzone();
On 2017/04/18 17:04:59, sadrul wrote:
> Should the magic cookie/assertions be behind DCHECK_IS_ON()?

Done.

https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/c...
ui/base/cursor/ozone/cursor_data_factory_ozone.cc:66: return
ToPlatformCursor(cursor);
On 2017/04/18 17:04:59, sadrul wrote:
> So this is essentially: make_scoped_refptr....release(), which is somewhat
> unfortunate. I wish the cursor data types were better defined.

Acknowledged.

https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/c...
ui/base/cursor/ozone/cursor_data_factory_ozone.cc:97:
scoped_refptr<CursorDataOzone> cursor = scoped_refptr<CursorDataOzone>(
On 2017/04/18 17:04:59, sadrul wrote:
> make_scoped_refptr?

Done.

https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/c...
File ui/base/cursor/ozone/cursor_data_factory_ozone.h (right):

https://codereview.chromium.org/2798883003/diff/180001/ui/base/cursor/ozone/c...
ui/base/cursor/ozone/cursor_data_factory_ozone.h:30: CursorDataOzone(const
ui::CursorData& data);
On 2017/04/18 17:04:59, sadrul wrote:
> explicit

Done.

Powered by Google App Engine
This is Rietveld 408576698