Browse Source

2743594: Remove WebSize from blink.

https://chromium-review.googlesource.com/c/chromium/src/+/2743594
John Kleinschmidt 4 years ago
parent
commit
b15b820bca

+ 0 - 10
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<blink::WebMouseWheelEvent>::FromV8(
   return true;
 }
 
-bool Converter<blink::WebSize>::FromV8(v8::Isolate* isolate,
-                                       v8::Local<v8::Value> 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<blink::DeviceEmulationParams>::FromV8(
     v8::Isolate* isolate,
     v8::Local<v8::Value> val,

+ 0 - 7
shell/common/gin_converters/blink_converter.h

@@ -52,13 +52,6 @@ struct Converter<blink::WebMouseWheelEvent> {
                      blink::WebMouseWheelEvent* out);
 };
 
-template <>
-struct Converter<blink::WebSize> {
-  static bool FromV8(v8::Isolate* isolate,
-                     v8::Local<v8::Value> val,
-                     blink::WebSize* out);
-};
-
 template <>
 struct Converter<blink::DeviceEmulationParams> {
   static bool FromV8(v8::Isolate* isolate,