Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: ui/views/mouse_constants.h

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_MOUSE_CONSTANTS_H_ 5 #ifndef UI_VIEWS_MOUSE_CONSTANTS_H_
6 #define UI_VIEWS_MOUSE_CONSTANTS_H_ 6 #define UI_VIEWS_MOUSE_CONSTANTS_H_
7 7
8 #include "base/basictypes.h"
9 8
10 namespace views { 9 namespace views {
11 10
12 // The amount of time the mouse should be down before a mouse release is 11 // 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 12 // considered intentional. This is to prevent spurious mouse releases from
14 // activating controls, especially when some UI element is revealed under the 13 // activating controls, especially when some UI element is revealed under the
15 // source of the activation (ex. menus showing underneath menu buttons). 14 // source of the activation (ex. menus showing underneath menu buttons).
16 const int kMinimumMsPressedToActivate = 200; 15 const int kMinimumMsPressedToActivate = 200;
17 16
18 // The amount of time, in milliseconds, between clicks until they're 17 // The amount of time, in milliseconds, between clicks until they're
19 // considered intentionally different. 18 // considered intentionally different.
20 const int kMinimumMsBetweenButtonClicks = 100; 19 const int kMinimumMsBetweenButtonClicks = 100;
21 20
22 } // namespace views 21 } // namespace views
23 22
24 #endif // UI_VIEWS_MOUSE_CONSTANTS_H_ 23 #endif // UI_VIEWS_MOUSE_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698