From b15b820bca25712f58601c902fc3b2442c959574 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Tue, 16 Mar 2021 10:01:47 -0400 Subject: [PATCH] 2743594: Remove WebSize from blink. https://chromium-review.googlesource.com/c/chromium/src/+/2743594 --- shell/common/gin_converters/blink_converter.cc | 10 ---------- shell/common/gin_converters/blink_converter.h | 7 ------- 2 files changed, 17 deletions(-) diff --git a/shell/common/gin_converters/blink_converter.cc b/shell/common/gin_converters/blink_converter.cc index e0316bab0cee..490e08def209 100644 --- a/shell/common/gin_converters/blink_converter.cc +++ b/shell/common/gin_converters/blink_converter.cc @@ -23,7 +23,6 @@ #include "third_party/blink/public/common/input/web_mouse_event.h" #include "third_party/blink/public/common/input/web_mouse_wheel_event.h" #include "third_party/blink/public/common/widget/device_emulation_params.h" -#include "third_party/blink/public/platform/web_size.h" #include "ui/base/clipboard/clipboard.h" #include "ui/events/blink/blink_event_util.h" #include "ui/events/keycodes/dom/keycode_converter.h" @@ -285,15 +284,6 @@ bool Converter::FromV8( return true; } -bool Converter::FromV8(v8::Isolate* isolate, - v8::Local val, - blink::WebSize* out) { - gin_helper::Dictionary dict; - if (!ConvertFromV8(isolate, val, &dict)) - return false; - return dict.Get("width", &out->width) && dict.Get("height", &out->height); -} - bool Converter::FromV8( v8::Isolate* isolate, v8::Local val, diff --git a/shell/common/gin_converters/blink_converter.h b/shell/common/gin_converters/blink_converter.h index 0ece2fb2e5aa..9f170bb42ac2 100644 --- a/shell/common/gin_converters/blink_converter.h +++ b/shell/common/gin_converters/blink_converter.h @@ -52,13 +52,6 @@ struct Converter { blink::WebMouseWheelEvent* out); }; -template <> -struct Converter { - static bool FromV8(v8::Isolate* isolate, - v8::Local val, - blink::WebSize* out); -}; - template <> struct Converter { static bool FromV8(v8::Isolate* isolate,