OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "views/controls/scrollbar/native_scroll_bar_win.h" | 5 #include "views/controls/scrollbar/native_scroll_bar_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "ui/base/keycodes/keyboard_codes.h" | 11 #include "ui/base/keycodes/keyboard_codes.h" |
12 #include "ui/base/win/hwnd_util.h" | 12 #include "ui/base/win/hwnd_util.h" |
13 #include "ui/base/win/window_impl.h" | 13 #include "ui/base/win/window_impl.h" |
| 14 #include "ui/views/widget/widget.h" |
14 #include "views/controls/scrollbar/native_scroll_bar.h" | 15 #include "views/controls/scrollbar/native_scroll_bar.h" |
15 #include "views/controls/scrollbar/scroll_bar.h" | 16 #include "views/controls/scrollbar/scroll_bar.h" |
16 #include "views/widget/widget.h" | |
17 | 17 |
18 namespace views { | 18 namespace views { |
19 | 19 |
20 ///////////////////////////////////////////////////////////////////////////// | 20 ///////////////////////////////////////////////////////////////////////////// |
21 // | 21 // |
22 // ScrollBarContainer | 22 // ScrollBarContainer |
23 // | 23 // |
24 // Since windows scrollbars only send notifications to their parent hwnd, we | 24 // Since windows scrollbars only send notifications to their parent hwnd, we |
25 // use instances of this class to wrap native scrollbars. | 25 // use instances of this class to wrap native scrollbars. |
26 // | 26 // |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 int NativeScrollBarWrapper::GetHorizontalScrollBarHeight() { | 341 int NativeScrollBarWrapper::GetHorizontalScrollBarHeight() { |
342 return GetSystemMetrics(SM_CYHSCROLL); | 342 return GetSystemMetrics(SM_CYHSCROLL); |
343 } | 343 } |
344 | 344 |
345 // static | 345 // static |
346 int NativeScrollBarWrapper::GetVerticalScrollBarWidth() { | 346 int NativeScrollBarWrapper::GetVerticalScrollBarWidth() { |
347 return GetSystemMetrics(SM_CXVSCROLL); | 347 return GetSystemMetrics(SM_CXVSCROLL); |
348 } | 348 } |
349 | 349 |
350 } // namespace views | 350 } // namespace views |
OLD | NEW |