1// Copyright 2013 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#ifndef UI_VIEWS_MOUSE_CONSTANTS_H_
6#define UI_VIEWS_MOUSE_CONSTANTS_H_
7
8#include "base/basictypes.h"
9
10namespace views {
11
12// The amount of time the mouse should be down before a mouse release is
13// considered intentional. This is to prevent spurious mouse releases from
14// activating controls, especially when some UI element is revealed under the
15// source of the activation (ex. menus showing underneath menu buttons).
16const int kMinimumMsPressedToActivate = 200;
17
18// The amount of time, in milliseconds, between clicks until they're
19// considered intentionally different.
20const int kMinimumMsBetweenButtonClicks = 100;
21
22}  // namespace views
23
24#endif  // UI_VIEWS_MOUSE_CONSTANTS_H_
25