Commit b77f2a59 authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Remove unused ui.mojom.CursorSize

The mojom enum for ui::CursorSize in //ui/base/mojom/cursor.mojom isn't
used anywhere.

Bug: 1040499
Change-Id: I24e4f714c205fa8c933299e86258102ef658da6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980742
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: default avatarAlex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740605}
parent 332de339
...@@ -62,13 +62,6 @@ enum CursorType { ...@@ -62,13 +62,6 @@ enum CursorType {
kCustom kCustom
}; };
// Whether we use normal or large cursors. These are the same as Chrome's
// ui::CursorSize.
enum CursorSize {
kNormal,
kLarge
};
// A description of a cursor. // A description of a cursor.
struct Cursor { struct Cursor {
// The type of cursor. If kCustom, the rest of the fields are relevant. // The type of cursor. If kCustom, the rest of the fields are relevant.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
mojom = "//ui/base/mojom/cursor.mojom" mojom = "//ui/base/mojom/cursor.mojom"
public_headers = [ public_headers = [
"//ui/base/cursor/cursor_size.h",
"//ui/base/cursor/cursor.h", "//ui/base/cursor/cursor.h",
"//ui/base/cursor/types/cursor_types.h", "//ui/base/cursor/types/cursor_types.h",
] ]
...@@ -22,6 +21,5 @@ deps = [ ...@@ -22,6 +21,5 @@ deps = [
type_mappings = [ type_mappings = [
"ui.mojom.Cursor=::ui::Cursor[copyable_pass_by_value]", "ui.mojom.Cursor=::ui::Cursor[copyable_pass_by_value]",
"ui.mojom.CursorSize=::ui::CursorSize",
"ui.mojom.CursorType=::ui::CursorType", "ui.mojom.CursorType=::ui::CursorType",
] ]
...@@ -275,38 +275,6 @@ bool EnumTraits<ui::mojom::CursorType, ui::CursorType>::FromMojom( ...@@ -275,38 +275,6 @@ bool EnumTraits<ui::mojom::CursorType, ui::CursorType>::FromMojom(
return false; return false;
} }
// static
ui::mojom::CursorSize
EnumTraits<ui::mojom::CursorSize, ui::CursorSize>::ToMojom(
ui::CursorSize input) {
switch (input) {
case ui::CursorSize::kNormal:
return ui::mojom::CursorSize::kNormal;
case ui::CursorSize::kLarge:
return ui::mojom::CursorSize::kLarge;
}
NOTREACHED();
return ui::mojom::CursorSize::kNormal;
}
// static
bool EnumTraits<ui::mojom::CursorSize, ui::CursorSize>::FromMojom(
ui::mojom::CursorSize input,
ui::CursorSize* out) {
switch (input) {
case ui::mojom::CursorSize::kNormal:
*out = ui::CursorSize::kNormal;
return true;
case ui::mojom::CursorSize::kLarge:
*out = ui::CursorSize::kLarge;
return true;
}
NOTREACHED();
return false;
}
// static // static
gfx::Point StructTraits<ui::mojom::CursorDataView, ui::Cursor>::hotspot( gfx::Point StructTraits<ui::mojom::CursorDataView, ui::Cursor>::hotspot(
const ui::Cursor& c) { const ui::Cursor& c) {
......
...@@ -16,12 +16,6 @@ struct EnumTraits<ui::mojom::CursorType, ui::CursorType> { ...@@ -16,12 +16,6 @@ struct EnumTraits<ui::mojom::CursorType, ui::CursorType> {
static bool FromMojom(ui::mojom::CursorType input, ui::CursorType* out); static bool FromMojom(ui::mojom::CursorType input, ui::CursorType* out);
}; };
template <>
struct EnumTraits<ui::mojom::CursorSize, ui::CursorSize> {
static ui::mojom::CursorSize ToMojom(ui::CursorSize input);
static bool FromMojom(ui::mojom::CursorSize input, ui::CursorSize* out);
};
template <> template <>
struct StructTraits<ui::mojom::CursorDataView, ui::Cursor> { struct StructTraits<ui::mojom::CursorDataView, ui::Cursor> {
static ui::CursorType native_type(const ui::Cursor& c) { static ui::CursorType native_type(const ui::Cursor& c) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment