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

Side by Side Diff: views/controls/scrollbar/native_scroll_bar_gtk.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « views/controls/scrollbar/native_scroll_bar.cc ('k') | views/controls/scrollbar/native_scroll_bar_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698