mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Allow content embedder to set a cursor for RenderWidgetHost
https://codereview.chromium.org/2808763009
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user