summaryrefslogtreecommitdiffstats
path: root/gfx/scrollbar_size.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/scrollbar_size.cc')
-rw-r--r--gfx/scrollbar_size.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/gfx/scrollbar_size.cc b/gfx/scrollbar_size.cc
new file mode 100644
index 0000000..426b0ac
--- /dev/null
+++ b/gfx/scrollbar_size.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "gfx/scrollbar_size.h"
+
+#include "base/compiler_specific.h"
+
+#if defined(OS_WIN)
+#include <windows.h>
+#endif
+
+namespace gfx {
+
+int scrollbar_size() {
+#if defined(OS_WIN)
+ return GetSystemMetrics(SM_CXVSCROLL);
+#else
+ return 15;
+#endif
+}
+
+} // namespace gfx