summaryrefslogtreecommitdiff
path: root/chromium/ui/views/mouse_constants.h
blob: e22c75cdd65c9be58729be8f36ea37b5adc099b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2013 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.

#ifndef UI_VIEWS_MOUSE_CONSTANTS_H_
#define UI_VIEWS_MOUSE_CONSTANTS_H_

#include "base/basictypes.h"
#include "ui/views/views_export.h"

namespace views {

// The amount of time the mouse should be down before a mouse release is
// considered intentional. This is to prevent spurious mouse releases from
// activating controls, especially when some UI element is revealed under the
// source of the activation (ex. menus showing underneath menu buttons).
VIEWS_EXPORT extern const int kMinimumMsPressedToActivate;

// The amount of time, in milliseconds, between clicks until they're considered
// intentionally different.
VIEWS_EXPORT extern const int kMinimumMsBetweenButtonClicks;

}  // namespace views

#endif  // UI_VIEWS_MOUSE_CONSTANTS_H_