| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "views/metrics.h" | 5 #include "ui/views/metrics.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 namespace views { | 9 namespace views { |
| 10 | 10 |
| 11 int GetDoubleClickInterval() { | 11 int GetDoubleClickInterval() { |
| 12 GdkDisplay* display = gdk_display_get_default(); | 12 GdkDisplay* display = gdk_display_get_default(); |
| 13 return display ? display->double_click_time : 500; | 13 return display ? display->double_click_time : 500; |
| 14 } | 14 } |
| 15 | 15 |
| 16 int GetMenuShowDelay() { | 16 int GetMenuShowDelay() { |
| 17 return kDefaultMenuShowDelay; | 17 return kDefaultMenuShowDelay; |
| 18 } | 18 } |
| 19 | 19 |
| 20 } // namespace views | 20 } // namespace views |
| OLD | NEW |