| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/view.h" | 5 #include "views/view.h" |
| 6 | 6 |
| 7 #include "app/drag_drop_types.h" | 7 #include "app/drag_drop_types.h" |
| 8 #include "app/gfx/canvas.h" | |
| 9 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "gfx/canvas.h" |
| 10 #include "gfx/path.h" | 10 #include "gfx/path.h" |
| 11 #include "views/accessibility/view_accessibility_wrapper.h" | 11 #include "views/accessibility/view_accessibility_wrapper.h" |
| 12 #include "views/border.h" | 12 #include "views/border.h" |
| 13 #include "views/widget/root_view.h" | 13 #include "views/widget/root_view.h" |
| 14 #include "views/widget/widget.h" | 14 #include "views/widget/widget.h" |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 int View::GetDoubleClickTimeMS() { | 19 int View::GetDoubleClickTimeMS() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 int View::GetVerticalDragThreshold() { | 45 int View::GetVerticalDragThreshold() { |
| 46 static int threshold = -1; | 46 static int threshold = -1; |
| 47 if (threshold == -1) | 47 if (threshold == -1) |
| 48 threshold = GetSystemMetrics(SM_CYDRAG) / 2; | 48 threshold = GetSystemMetrics(SM_CYDRAG) / 2; |
| 49 return threshold; | 49 return threshold; |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace views | 52 } // namespace views |
| OLD | NEW |