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

Unified Diff: content/browser/devtools/protocol/color_picker.cc

Issue 2808763009: Allow content embedder to set a cursor for RenderWidgetHost (Closed)
Patch Set: comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_emulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/color_picker.cc
diff --git a/content/browser/devtools/protocol/color_picker.cc b/content/browser/devtools/protocol/color_picker.cc
index 8b87fa9f3f346a134776a9c0e39383149a15d4fe..8897aade607a935682b07a2c9432d550067d64d0 100644
--- a/content/browser/devtools/protocol/color_picker.cc
+++ b/content/browser/devtools/protocol/color_picker.cc
@@ -63,7 +63,7 @@ void ColorPicker::SetEnabled(bool enabled) {
ResetFrame();
WebCursor pointer_cursor;
- WebCursor::CursorInfo cursor_info;
+ CursorInfo cursor_info;
cursor_info.type = blink::WebCursorInfo::kTypePointer;
pointer_cursor.InitFromCursorInfo(cursor_info);
host_->SetCursor(pointer_cursor);
@@ -249,7 +249,7 @@ void ColorPicker::UpdateCursor() {
canvas.drawCircle(kCursorSize / 2, kCursorSize / 2, kDiameter / 2, paint);
WebCursor cursor;
- WebCursor::CursorInfo cursor_info;
+ CursorInfo cursor_info;
cursor_info.type = blink::WebCursorInfo::kTypeCustom;
cursor_info.image_scale_factor = device_scale_factor;
cursor_info.custom_image = result;
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_emulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698