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

Issue 2808763009: Allow content embedder to set a cursor for RenderWidgetHost (Closed)

Created:
3 years, 8 months ago by dgozman
Modified:
3 years, 8 months ago
Reviewers:
Avi (use Gerrit), Bret
CC:
chromium-reviews, piman+watch_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, mlamouri+watch-content_chromium.org, shuchen+watch_chromium.org, mac-reviews_chromium.org, nasko+codewatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, kalyank, danakj+watch_chromium.org, James Su, pfeldman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow content embedder to set a cursor for RenderWidgetHost One example is DevTools eye dropper feature which changes cursor to custom image built from the rendered page contents. content::CursorInfo is introduced to pass the data through public API. BUG=711412 TBR=inferno@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2808763009 Cr-Commit-Position: refs/heads/master@{#464633} Committed: https://chromium.googlesource.com/chromium/src/+/9adbfb97089e255303e640084c0eb45481766457

Patch Set 1 #

Patch Set 2 : BUILD.gn #

Patch Set 3 : rebased #

Patch Set 4 : CursorInfo #

Total comments: 2

Patch Set 5 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -29 lines) Patch
M content/browser/devtools/protocol/color_picker.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
D content/common/cursors/webcursor.h View 1 2 3 2 chunks +1 line, -16 lines 0 comments Download
M content/common/cursors/webcursor_unittest.cc View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/cursor_info.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M content/renderer/cursor_utils.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (21 generated)
dgozman
Hi Avi and Bret, Could you please take a look? I stumbled upon this while ...
3 years, 8 months ago (2017-04-12 23:21:02 UTC) #6
Bret
I'm not very familiar with embedding, but this change LGTM.
3 years, 8 months ago (2017-04-12 23:35:15 UTC) #9
Avi (use Gerrit)
1. You need a bug. 2. The content API is interfaces, not implementations. Leave webcursor.h ...
3 years, 8 months ago (2017-04-13 14:30:34 UTC) #14
dgozman
> 2. The content API is interfaces, not implementations. Leave webcursor.h where > it is, ...
3 years, 8 months ago (2017-04-13 17:18:37 UTC) #15
Avi (use Gerrit)
On 2017/04/13 17:18:37, dgozman wrote: > > 2. The content API is interfaces, not implementations. ...
3 years, 8 months ago (2017-04-13 17:30:27 UTC) #16
dgozman
On 2017/04/13 17:30:27, Avi wrote: > On 2017/04/13 17:18:37, dgozman wrote: > > > 2. ...
3 years, 8 months ago (2017-04-13 17:38:56 UTC) #17
dgozman
Avi, Bret, could you please take another look? I think this is ready.
3 years, 8 months ago (2017-04-13 21:52:03 UTC) #23
Avi (use Gerrit)
lgtm minor grammar nits https://codereview.chromium.org/2808763009/diff/60001/content/public/common/cursor_info.h File content/public/common/cursor_info.h (right): https://codereview.chromium.org/2808763009/diff/60001/content/public/common/cursor_info.h#newcode33 content/public/common/cursor_info.h:33: // The scale factor of ...
3 years, 8 months ago (2017-04-13 22:12:31 UTC) #24
Bret
lgtm
3 years, 8 months ago (2017-04-13 22:23:04 UTC) #25
dgozman
Thank you for review. https://codereview.chromium.org/2808763009/diff/60001/content/public/common/cursor_info.h File content/public/common/cursor_info.h (right): https://codereview.chromium.org/2808763009/diff/60001/content/public/common/cursor_info.h#newcode33 content/public/common/cursor_info.h:33: // The scale factor of ...
3 years, 8 months ago (2017-04-13 23:21:09 UTC) #26
dgozman
TBR'ing inferno@chromium.org for tools/ipc_fuzzer (simple rename).
3 years, 8 months ago (2017-04-13 23:23:11 UTC) #28
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/2808763009/80001
3 years, 8 months ago (2017-04-13 23:23:47 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 00:53:32 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9adbfb97089e255303e640084c0e...

Powered by Google App Engine
This is Rietveld 408576698