Allow content embedder to set a cursor for RenderWidgetHost

https://codereview.chromium.org/2808763009
This commit is contained in:
Aleksei Kuzmin 2017-06-16 23:59:57 +03:00
parent 1126719e7f
commit c7f2e2731c
3 changed files with 3 additions and 3 deletions

View file

@ -1553,7 +1553,7 @@ void WebContents::CapturePage(mate::Arguments* args) {
} }
void WebContents::OnCursorChange(const content::WebCursor& cursor) { void WebContents::OnCursorChange(const content::WebCursor& cursor) {
content::WebCursor::CursorInfo info; content::CursorInfo info;
cursor.GetCursorInfo(&info); cursor.GetCursorInfo(&info);
if (cursor.IsCustom()) { if (cursor.IsCustom()) {

View file

@ -9,7 +9,7 @@ using Cursor = blink::WebCursorInfo::Type;
namespace atom { namespace atom {
std::string CursorTypeToString(const content::WebCursor::CursorInfo& info) { std::string CursorTypeToString(const content::CursorInfo& info) {
switch (info.type) { switch (info.type) {
case Cursor::kTypePointer: return "default"; case Cursor::kTypePointer: return "default";
case Cursor::kTypeCross: return "crosshair"; case Cursor::kTypeCross: return "crosshair";

View file

@ -29,7 +29,7 @@
namespace atom { namespace atom {
// Returns the cursor's type as a string. // Returns the cursor's type as a string.
std::string CursorTypeToString(const content::WebCursor::CursorInfo& info); std::string CursorTypeToString(const content::CursorInfo& info);
} // namespace atom } // namespace atom