diff options
Diffstat (limited to 'ui/views/view_aura.cc')
-rw-r--r-- | ui/views/view_aura.cc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ui/views/view_aura.cc b/ui/views/view_aura.cc new file mode 100644 index 0000000..6045b91 --- /dev/null +++ b/ui/views/view_aura.cc @@ -0,0 +1,37 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "ui/views/view.h" + +namespace { + +// Default horizontal drag threshold in pixels. +// Same as what gtk uses. +const int kDefaultHorizontalDragThreshold = 8; + +// Default vertical drag threshold in pixels. +// Same as what gtk uses. +const int kDefaultVerticalDragThreshold = 8; + +} // namespace + +namespace views { + +gfx::NativeViewAccessible View::GetNativeViewAccessible() { + return NULL; +} + +int View::GetHorizontalDragThreshold() { + // TODO(jennyz): This value may need to be adjusted for different platforms + // and for different display density. + return kDefaultHorizontalDragThreshold; +} + +int View::GetVerticalDragThreshold() { + // TODO(jennyz): This value may need to be adjusted for different platforms + // and for different display density. + return kDefaultVerticalDragThreshold; +} + +} // namespace views |