Home | History | Annotate | Download | only in views
      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 "ui/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 namespace views {
     13 
     14 int View::GetHorizontalDragThreshold() {
     15   static int threshold = -1;
     16   if (threshold == -1)
     17     threshold = GetSystemMetrics(SM_CXDRAG) / 2;
     18   return threshold;
     19 }
     20 
     21 int View::GetVerticalDragThreshold() {
     22   static int threshold = -1;
     23   if (threshold == -1)
     24     threshold = GetSystemMetrics(SM_CYDRAG) / 2;
     25   return threshold;
     26 }
     27 
     28 }  // namespace views
     29