chore: update chromium to 82.0.4058.2 (#22198)

Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: loc <andy@slack-corp.com>
Co-authored-by: Robo <hop2deep@gmail.com>
This commit is contained in:
Jeremy Apthorp
2020-03-02 11:21:22 -08:00
committed by GitHub
parent df2d03fe9b
commit 5e05df9f71
71 changed files with 670 additions and 452 deletions

View File

@@ -264,17 +264,16 @@ bool Converter<blink::WebMouseWheelEvent>::FromV8(
bool has_precise_scrolling_deltas = false;
dict.Get("hasPreciseScrollingDeltas", &has_precise_scrolling_deltas);
if (has_precise_scrolling_deltas) {
out->delta_units =
ui::input_types::ScrollGranularity::kScrollByPrecisePixel;
out->delta_units = ui::ScrollGranularity::kScrollByPrecisePixel;
} else {
out->delta_units = ui::input_types::ScrollGranularity::kScrollByPixel;
out->delta_units = ui::ScrollGranularity::kScrollByPixel;
}
#if defined(USE_AURA)
// Matches the behavior of ui/events/blink/web_input_event_traits.cc:
bool can_scroll = true;
if (dict.Get("canScroll", &can_scroll) && !can_scroll) {
out->delta_units = ui::input_types::ScrollGranularity::kScrollByPage;
out->delta_units = ui::ScrollGranularity::kScrollByPage;
out->SetModifiers(out->GetModifiers() & ~blink::WebInputEvent::kControlKey);
}
#endif

View File

@@ -148,7 +148,7 @@ v8::Local<v8::Value> Converter<display::Display>::ToV8(
dict.Set("accelerometerSupport", val.accelerometer_support());
dict.Set("monochrome", val.is_monochrome());
dict.Set("colorDepth", val.color_depth());
dict.Set("colorSpace", val.color_space().ToString());
dict.Set("colorSpace", val.color_spaces().GetRasterColorSpace().ToString());
dict.Set("depthPerComponent", val.depth_per_component());
dict.Set("size", val.size());
dict.Set("workAreaSize", val.work_area_size());