chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.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> Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
parent
3a331ffca6
commit
39baf68790
126 changed files with 1047 additions and 961 deletions
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue