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

Unified Diff: content/browser/renderer_host/input/touch_emulator.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
Index: content/browser/renderer_host/input/touch_emulator.cc
diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
index 5e3b63fb1f78f0b2af3baace08fdf9af06eeba1c..c7ec22f1a9203cfb7620ee163cd8c091bcdda889 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -133,7 +133,7 @@ bool TouchEmulator::InitCursors(float device_scale_factor, bool force) {
use_2x ? IDR_DEVTOOLS_PINCH_CURSOR_ICON_2X :
IDR_DEVTOOLS_PINCH_CURSOR_ICON);
- WebCursor::CursorInfo cursor_info;
+ CursorInfo cursor_info;
cursor_info.type = blink::WebCursorInfo::kTypePointer;
pointer_cursor_.InitFromCursorInfo(cursor_info);
return true;
@@ -143,7 +143,7 @@ gfx::SizeF TouchEmulator::InitCursorFromResource(
WebCursor* cursor, float scale, int resource_id) {
gfx::Image& cursor_image =
content::GetContentClient()->GetNativeImageNamed(resource_id);
- WebCursor::CursorInfo cursor_info;
+ CursorInfo cursor_info;
cursor_info.type = blink::WebCursorInfo::kTypeCustom;
cursor_info.image_scale_factor = scale;
cursor_info.custom_image = cursor_image.AsBitmap();
« no previous file with comments | « content/browser/devtools/protocol/color_picker.cc ('k') | content/browser/renderer_host/input/touch_emulator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698