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_gtk.h" | 5 #include "views/controls/scrollbar/native_scroll_bar_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "ui/base/keycodes/keyboard_codes_posix.h" | 9 #include "ui/base/keycodes/keyboard_codes_posix.h" |
| 10 #include "ui/views/widget/widget.h" |
10 #include "views/controls/scrollbar/native_scroll_bar.h" | 11 #include "views/controls/scrollbar/native_scroll_bar.h" |
11 #include "views/controls/scrollbar/native_scroll_bar_views.h" | 12 #include "views/controls/scrollbar/native_scroll_bar_views.h" |
12 #include "views/controls/scrollbar/scroll_bar.h" | 13 #include "views/controls/scrollbar/scroll_bar.h" |
13 #include "views/widget/widget.h" | |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
18 // NativeScrollBarGtk, public: | 18 // NativeScrollBarGtk, public: |
19 | 19 |
20 NativeScrollBarGtk::NativeScrollBarGtk(NativeScrollBar* scroll_bar) | 20 NativeScrollBarGtk::NativeScrollBarGtk(NativeScrollBar* scroll_bar) |
21 : NativeControlGtk(), | 21 : NativeControlGtk(), |
22 native_scroll_bar_(scroll_bar) { | 22 native_scroll_bar_(scroll_bar) { |
23 set_focus_view(scroll_bar); | 23 set_focus_view(scroll_bar); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 return 20; | 212 return 20; |
213 } | 213 } |
214 | 214 |
215 // static | 215 // static |
216 int NativeScrollBarWrapper::GetVerticalScrollBarWidth() { | 216 int NativeScrollBarWrapper::GetVerticalScrollBarWidth() { |
217 // TODO(oshima): get this from gtk's widget property "slider-width". | 217 // TODO(oshima): get this from gtk's widget property "slider-width". |
218 return 20; | 218 return 20; |
219 } | 219 } |
220 | 220 |
221 } // namespace views | 221 } // namespace views |
OLD | NEW |