1 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "third_party/blink/renderer/core/layout/layout_theme_android.h" 6 7 #include "ui/base/ui_base_features.h" 8 9 namespace blink { 10 Create()11scoped_refptr<LayoutTheme> LayoutThemeAndroid::Create() { 12 return base::AdoptRef(new LayoutThemeAndroid()); 13 } 14 NativeTheme()15LayoutTheme& LayoutTheme::NativeTheme() { 16 DEFINE_STATIC_REF(LayoutTheme, layout_theme, (LayoutThemeAndroid::Create())); 17 return *layout_theme; 18 } 19 ~LayoutThemeAndroid()20LayoutThemeAndroid::~LayoutThemeAndroid() {} 21 ExtraDefaultStyleSheet()22String LayoutThemeAndroid::ExtraDefaultStyleSheet() { 23 String extra_sheet = LayoutThemeMobile::ExtraDefaultStyleSheet(); 24 if (features::IsFormControlsRefreshEnabled()) 25 return extra_sheet; 26 27 // "32px" comes from 28 // 2 * -LayoutThemeDefault::SliderTickOffsetFromTrackCenter(). 29 return extra_sheet + R"CSS( 30 input[type="range" i]:-internal-has-datalist::-webkit-slider-container { 31 min-block-size: 32px; 32 })CSS"; 33 } 34 35 } // namespace blink 36