This source file includes following definitions.
- create
- theme
- extraMediaControlsStyleSheet
- extraDefaultStyleSheet
- adjustInnerSpinButtonStyle
- paintMediaOverlayPlayButton
- menuListArrowPadding
#include "config.h"
#include "core/rendering/RenderThemeChromiumAndroid.h"
#include "CSSValueKeywords.h"
#include "InputTypeNames.h"
#include "UserAgentStyleSheets.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderMediaControls.h"
#include "core/rendering/RenderObject.h"
#include "core/rendering/RenderProgress.h"
#include "core/rendering/RenderSlider.h"
#include "platform/LayoutTestSupport.h"
#include "platform/graphics/Color.h"
#include "platform/scroll/ScrollbarTheme.h"
#include "public/platform/Platform.h"
#include "public/platform/WebThemeEngine.h"
#include "wtf/StdLibExtras.h"
namespace WebCore {
PassRefPtr<RenderTheme> RenderThemeChromiumAndroid::create()
{
return adoptRef(new RenderThemeChromiumAndroid());
}
RenderTheme& RenderTheme::theme()
{
DEFINE_STATIC_REF(RenderTheme, renderTheme, (RenderThemeChromiumAndroid::create()));
return *renderTheme;
}
RenderThemeChromiumAndroid::~RenderThemeChromiumAndroid()
{
}
String RenderThemeChromiumAndroid::extraMediaControlsStyleSheet()
{
return String(mediaControlsAndroidUserAgentStyleSheet, sizeof(mediaControlsAndroidUserAgentStyleSheet));
}
String RenderThemeChromiumAndroid::extraDefaultStyleSheet()
{
return RenderThemeChromiumDefault::extraDefaultStyleSheet() +
String(themeChromiumAndroidUserAgentStyleSheet, sizeof(themeChromiumAndroidUserAgentStyleSheet));
}
void RenderThemeChromiumAndroid::adjustInnerSpinButtonStyle(RenderStyle* style, Element*) const
{
if (isRunningLayoutTest()) {
IntSize size = blink::Platform::current()->themeEngine()->getSize(blink::WebThemeEngine::PartInnerSpinButton);
style->setWidth(Length(size.width(), Fixed));
style->setMinWidth(Length(size.width(), Fixed));
}
}
bool RenderThemeChromiumAndroid::paintMediaOverlayPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
{
return RenderMediaControls::paintMediaControlsPart(MediaOverlayPlayButton, object, paintInfo, rect);
}
int RenderThemeChromiumAndroid::menuListArrowPadding() const
{
IntSize scrollbarSize = blink::Platform::current()->themeEngine()->getSize(blink::WebThemeEngine::PartScrollbarDownArrow);
return scrollbarSize.width();
}
}