| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "views/view.h" | |
| 6 | |
| 7 // Necessary to define oleacc GUID's. | |
| 8 #include <windows.h> | |
| 9 #include <initguid.h> | |
| 10 #include <oleacc.h> | |
| 11 | |
| 12 #include "ui/views/accessibility/native_view_accessibility_win.h" | |
| 13 | |
| 14 namespace views { | |
| 15 | |
| 16 gfx::NativeViewAccessible View::GetNativeViewAccessible() { | |
| 17 if (!native_view_accessibility_win_.get()) | |
| 18 native_view_accessibility_win_ = NativeViewAccessibilityWin::Create(this); | |
| 19 return native_view_accessibility_win_.get(); | |
| 20 } | |
| 21 | |
| 22 int View::GetHorizontalDragThreshold() { | |
| 23 static int threshold = -1; | |
| 24 if (threshold == -1) | |
| 25 threshold = GetSystemMetrics(SM_CXDRAG) / 2; | |
| 26 return threshold; | |
| 27 } | |
| 28 | |
| 29 int View::GetVerticalDragThreshold() { | |
| 30 static int threshold = -1; | |
| 31 if (threshold == -1) | |
| 32 threshold = GetSystemMetrics(SM_CYDRAG) / 2; | |
| 33 return threshold; | |
| 34 } | |
| 35 | |
| 36 } // namespace views | |
| OLD | NEW |