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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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 | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/cursors/webcursor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 01b7e2664330c23006e069dd9ce18dad588ac577..61bad212a2e51e39636275945692261feeb1b04e 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1446,6 +1446,12 @@ void RenderWidgetHostImpl::FilterDropData(DropData* drop_data) {
}
}
+void RenderWidgetHostImpl::SetCursor(const CursorInfo& cursor_info) {
+ WebCursor cursor;
+ cursor.InitFromCursorInfo(cursor_info);
+ SetCursor(cursor);
+}
+
void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
if (delegate_)
delegate_->ScreenInfoChanged();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/cursors/webcursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698