metrics.h 817 B

123456789101112131415161718192021222324252627
  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.
  4. #ifndef UI_VIEWS_METRICS_H_
  5. #define UI_VIEWS_METRICS_H_
  6. #include "ui/views/views_export.h"
  7. namespace views {
  8. // NOTE: All times in this file are/should be expressed in milliseconds.
  9. // The default value for how long to wait before showing a menu button on hover.
  10. // This value is used if the OS doesn't supply one.
  11. extern const int kDefaultMenuShowDelay;
  12. // Returns the amount of time between double clicks.
  13. VIEWS_EXPORT int GetDoubleClickInterval();
  14. // Returns the amount of time to wait from hovering over a menu button until
  15. // showing the menu.
  16. VIEWS_EXPORT int GetMenuShowDelay();
  17. } // namespace views
  18. #endif // UI_VIEWS_METRICS_H_