Allow content embedder to set a cursor for RenderWidgetHost
https://codereview.chromium.org/2808763009
This commit is contained in:
parent
1126719e7f
commit
c7f2e2731c
3 changed files with 3 additions and 3 deletions
|
@ -1553,7 +1553,7 @@ void WebContents::CapturePage(mate::Arguments* args) {
|
|||
}
|
||||
|
||||
void WebContents::OnCursorChange(const content::WebCursor& cursor) {
|
||||
content::WebCursor::CursorInfo info;
|
||||
content::CursorInfo info;
|
||||
cursor.GetCursorInfo(&info);
|
||||
|
||||
if (cursor.IsCustom()) {
|
||||
|
|
|
@ -9,7 +9,7 @@ using Cursor = blink::WebCursorInfo::Type;
|
|||
|
||||
namespace atom {
|
||||
|
||||
std::string CursorTypeToString(const content::WebCursor::CursorInfo& info) {
|
||||
std::string CursorTypeToString(const content::CursorInfo& info) {
|
||||
switch (info.type) {
|
||||
case Cursor::kTypePointer: return "default";
|
||||
case Cursor::kTypeCross: return "crosshair";
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
namespace atom {
|
||||
|
||||
// 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue