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.
5 #include "ui/views/metrics.h"
13 // Default double click interval in milliseconds.
14 // Same as what gtk uses.
15 const int kDefaultDoubleClickInterval
= 500;
21 int GetDoubleClickInterval() {
23 return ::GetDoubleClickTime();
25 // TODO(jennyz): This value may need to be adjusted on different platforms.
26 return kDefaultDoubleClickInterval
;
30 int GetMenuShowDelay() {
32 static DWORD delay
= 0;
33 if (!delay
&& !SystemParametersInfo(SPI_GETMENUSHOWDELAY
, 0, &delay
, 0))
34 delay
= kDefaultMenuShowDelay
;