Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: webkit/glue/webthemeengine_impl_win.cc

Issue 10532207: Handling of scrollbar arrow size between for Aura-on-Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return size instead of int Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webthemeengine_impl_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webthemeengine_impl_win.cc
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc
index 30464e08bc48a14b44f1ad3ccc0f8a75a0ace88c..7e60501664819408c5bb177f8718dea67986b8fc 100644
--- a/webkit/glue/webthemeengine_impl_win.cc
+++ b/webkit/glue/webthemeengine_impl_win.cc
@@ -15,6 +15,7 @@
using WebKit::WebCanvas;
using WebKit::WebColor;
using WebKit::WebRect;
+using WebKit::WebSize;
namespace webkit_glue {
@@ -981,4 +982,19 @@ void WebThemeEngineImpl::paintProgressBar(
extra);
}
+WebSize WebThemeEngineImpl::getSize(int part) {
+ switch (part) {
+ case SBP_ARROWBTN: {
+ gfx::Size size = ui::NativeTheme::instance()->GetPartSize(
+ ui::NativeTheme::kScrollbarUpArrow,
+ ui::NativeTheme::kNormal,
+ ui::NativeTheme::ExtraParams());
+ return WebSize(size.width(), size.height());
+ }
+ default:
+ NOTREACHED() << "Unhandled part: " << part;
+ }
+ return WebSize();
+}
+
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/webthemeengine_impl_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698