summaryrefslogtreecommitdiffstats
path: root/ui/views/metrics.h
blob: 0331ae1a5a3ef1ddd29d56f742c77b811f9f397a (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
26
27
// Copyright (c) 2011 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_METRICS_H_
#define UI_VIEWS_METRICS_H_

#include "ui/views/views_export.h"

namespace views {

// NOTE: All times in this file are/should be expressed in milliseconds.

// The default value for how long to wait before showing a menu button on hover.
// This value is used if the OS doesn't supply one.
extern const int kDefaultMenuShowDelay;

// Returns the amount of time between double clicks.
VIEWS_EXPORT int GetDoubleClickInterval();

// Returns the amount of time to wait from hovering over a menu button until
// showing the menu.
VIEWS_EXPORT int GetMenuShowDelay();

}  // namespace views

#endif  // UI_VIEWS_METRICS_H_