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

Side by Side Diff: views/controls/scrollbar/native_scroll_bar_win.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_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
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
OLDNEW
« no previous file with comments | « views/controls/scrollbar/native_scroll_bar_gtk.cc ('k') | views/controls/scrollbar/scrollbar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698