[email protected] | 2629d65a | 2009-12-09 19:41:41 | [diff] [blame] | 1 | // Copyright (c) 2009 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 | |||||
[email protected] | 08397d5 | 2011-02-05 01:53:38 | [diff] [blame] | 5 | #include "ui/gfx/scrollbar_size.h" |
[email protected] | 2629d65a | 2009-12-09 19:41:41 | [diff] [blame] | 6 | |
7 | #include "base/compiler_specific.h" | ||||
avi | c89eb8d4 | 2015-12-23 08:08:18 | [diff] [blame] | 8 | #include "build/build_config.h" |
[email protected] | 2629d65a | 2009-12-09 19:41:41 | [diff] [blame] | 9 | |
10 | #if defined(OS_WIN) | ||||
11 | #include <windows.h> | ||||
12 | #endif | ||||
13 | |||||
14 | namespace gfx { | ||||
15 | |||||
16 | int scrollbar_size() { | ||||
17 | #if defined(OS_WIN) | ||||
18 | return GetSystemMetrics(SM_CXVSCROLL); | ||||
19 | #else | ||||
20 | return 15; | ||||
21 | #endif | ||||
22 | } | ||||
23 | |||||
24 | } // namespace gfx |