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

Side by Side Diff: views/view_win.cc

Issue 8533010: views: Move accessibility/ directory to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « views/view.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/view.h" 5 #include "views/view.h"
6 6
7 // Necessary to define oleacc GUID's. 7 // Necessary to define oleacc GUID's.
8 #include <windows.h>
8 #include <initguid.h> 9 #include <initguid.h>
9 #include <oleacc.h> 10 #include <oleacc.h>
10 #include <windows.h>
11 11
12 #include "views/accessibility/native_view_accessibility_win.h" 12 #include "ui/views/accessibility/native_view_accessibility_win.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 gfx::NativeViewAccessible View::GetNativeViewAccessible() { 16 gfx::NativeViewAccessible View::GetNativeViewAccessible() {
17 if (!native_view_accessibility_win_.get()) 17 if (!native_view_accessibility_win_.get())
18 native_view_accessibility_win_ = NativeViewAccessibilityWin::Create(this); 18 native_view_accessibility_win_ = NativeViewAccessibilityWin::Create(this);
19 return native_view_accessibility_win_.get(); 19 return native_view_accessibility_win_.get();
20 } 20 }
21 21
22 int View::GetHorizontalDragThreshold() { 22 int View::GetHorizontalDragThreshold() {
23 static int threshold = -1; 23 static int threshold = -1;
24 if (threshold == -1) 24 if (threshold == -1)
25 threshold = GetSystemMetrics(SM_CXDRAG) / 2; 25 threshold = GetSystemMetrics(SM_CXDRAG) / 2;
26 return threshold; 26 return threshold;
27 } 27 }
28 28
29 int View::GetVerticalDragThreshold() { 29 int View::GetVerticalDragThreshold() {
30 static int threshold = -1; 30 static int threshold = -1;
31 if (threshold == -1) 31 if (threshold == -1)
32 threshold = GetSystemMetrics(SM_CYDRAG) / 2; 32 threshold = GetSystemMetrics(SM_CYDRAG) / 2;
33 return threshold; 33 return threshold;
34 } 34 }
35 35
36 } // namespace views 36 } // namespace views
OLDNEW
« no previous file with comments | « views/view.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698