| Index: views/examples/native_theme_button_example.cc
|
| ===================================================================
|
| --- views/examples/native_theme_button_example.cc (revision 90572)
|
| +++ views/examples/native_theme_button_example.cc (working copy)
|
| @@ -137,7 +137,14 @@
|
| }
|
|
|
| gfx::Rect ExampleNativeThemeButton::GetThemePaintRect() const {
|
| - return GetLocalBounds();
|
| + gfx::NativeTheme::ExtraParams extra;
|
| + gfx::NativeTheme::State state = GetThemeState(&extra);
|
| + gfx::Size size(gfx::NativeTheme::instance()->GetPartSize(GetThemePart(),
|
| + state,
|
| + extra));
|
| + gfx::Rect rect(size);
|
| + rect.set_x(GetMirroredXForRect(rect));
|
| + return rect;
|
| }
|
|
|
| gfx::NativeTheme::State ExampleNativeThemeButton::GetThemeState(
|
|
|