| 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/view.h" | 5 #include "views/view.h" |
| 6 | 6 |
| 7 #include <atlcomcli.h> | 7 #include <atlcomcli.h> |
| 8 // Necessary to define oleacc GUID's used in window_win.cc. | 8 // Necessary to define oleacc GUID's used in window_win.cc. |
| 9 #include <initguid.h> | 9 #include <initguid.h> |
| 10 #include <oleacc.h> | 10 #include <oleacc.h> |
| 11 | 11 |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "ui/base/dragdrop/drag_drop_types.h" | 13 #include "ui/base/dragdrop/drag_drop_types.h" |
| 14 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
| 15 #include "ui/gfx/path.h" | 15 #include "ui/gfx/path.h" |
| 16 #include "views/accessibility/native_view_accessibility_win.h" | 16 #include "views/accessibility/native_view_accessibility_win.h" |
| 17 #include "views/border.h" | 17 #include "views/border.h" |
| 18 #include "views/views_delegate.h" | 18 #include "views/views_delegate.h" |
| 19 #include "views/widget/root_view.h" | 19 #include "views/widget/root_view.h" |
| 20 #include "views/widget/widget.h" | 20 #include "views/widget/widget.h" |
| 21 | 21 |
| 22 namespace views { | 22 namespace views { |
| 23 | 23 |
| 24 NativeViewAccessibilityWin* View::GetNativeViewAccessibilityWin() { | 24 gfx::NativeViewAccessible View::GetNativeViewAccessible() { |
| 25 if (!native_view_accessibility_win_.get()) | 25 if (!native_view_accessibility_win_.get()) |
| 26 native_view_accessibility_win_ = | 26 native_view_accessibility_win_ = |
| 27 NativeViewAccessibilityWin::Create(this); | 27 NativeViewAccessibilityWin::Create(this); |
| 28 return native_view_accessibility_win_.get(); | 28 return native_view_accessibility_win_.get(); |
| 29 } | 29 } |
| 30 | 30 |
| 31 int View::GetHorizontalDragThreshold() { | 31 int View::GetHorizontalDragThreshold() { |
| 32 static int threshold = -1; | 32 static int threshold = -1; |
| 33 if (threshold == -1) | 33 if (threshold == -1) |
| 34 threshold = GetSystemMetrics(SM_CXDRAG) / 2; | 34 threshold = GetSystemMetrics(SM_CXDRAG) / 2; |
| 35 return threshold; | 35 return threshold; |
| 36 } | 36 } |
| 37 | 37 |
| 38 int View::GetVerticalDragThreshold() { | 38 int View::GetVerticalDragThreshold() { |
| 39 static int threshold = -1; | 39 static int threshold = -1; |
| 40 if (threshold == -1) | 40 if (threshold == -1) |
| 41 threshold = GetSystemMetrics(SM_CYDRAG) / 2; | 41 threshold = GetSystemMetrics(SM_CYDRAG) / 2; |
| 42 return threshold; | 42 return threshold; |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace views | 45 } // namespace views |
| OLD | NEW |