Restrict WebCursor usage to RenderWidgetHostViewAura
WebCursor will eventually be merged with ui::Cursor. In the meantime,
restrict its usage the the single place where it's actually used,
RenderWidgetHostViewAura. ui::Cursor will be used instead, and converted
to WebCursor in that class.
Since the usage has been limited, clean some unused methods in WebCursor.
Bug: 1149906
Change-Id: Iebca2a578894a3be4031c823af99d4e3166b7bbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4181044
Commit-Queue: Henrique Ferreiro <[email protected]>
Reviewed-by: Mike Wasserman <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1095793}
diff --git a/content/common/cursors/webcursor.h b/content/common/cursors/webcursor.h
index 337a1a5..4ccd8c31 100644
--- a/content/common/cursors/webcursor.h
+++ b/content/common/cursors/webcursor.h
@@ -19,6 +19,9 @@
namespace content {
+// NOTE(https://crbug.com/1149906): This class is deprecated and ui::Cursor
+// should be used instead.
+//
// This class encapsulates a cross-platform description of a cursor. Platform
// specific methods are provided to translate the cross-platform cursor into a
// platform specific cursor. It is also possible to serialize / de-serialize a
@@ -27,7 +30,6 @@
public:
WebCursor();
explicit WebCursor(const ui::Cursor& info);
- explicit WebCursor(const WebCursor& other);
~WebCursor();
const ui::Cursor& cursor() const { return cursor_; }
@@ -35,10 +37,6 @@
// Sets the ui::Cursor |cursor|; returns whether it has reasonable values.
bool SetCursor(const ui::Cursor& cursor);
- // Equality operator; performs bitmap content comparison as needed.
- bool operator==(const WebCursor& other) const;
- bool operator!=(const WebCursor& other) const;
-
// Returns a native cursor representing the current WebCursor instance.
gfx::NativeCursor GetNativeCursor();
@@ -54,9 +52,6 @@
#endif
private:
- // Platform specific cleanup.
- void CleanupPlatformData();
-
float GetCursorScaleFactor(SkBitmap* bitmap);
// The basic cursor info.