| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "config.h" | |
| 6 #include "core/input/InputDeviceCapabilities.h" | 5 #include "core/input/InputDeviceCapabilities.h" |
| 7 | 6 |
| 8 namespace blink { | 7 namespace blink { |
| 9 | 8 |
| 10 InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents) | 9 InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents) |
| 11 { | 10 { |
| 12 m_firesTouchEvents = firesTouchEvents; | 11 m_firesTouchEvents = firesTouchEvents; |
| 13 } | 12 } |
| 14 | 13 |
| 15 InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesIn
it& initializer) | 14 InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesIn
it& initializer) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 return instance; | 26 return instance; |
| 28 } | 27 } |
| 29 | 28 |
| 30 InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCap
abilities() | 29 InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCap
abilities() |
| 31 { | 30 { |
| 32 DEFINE_STATIC_LOCAL(Persistent<InputDeviceCapabilities>, instance, (InputDev
iceCapabilities::create(false))); | 31 DEFINE_STATIC_LOCAL(Persistent<InputDeviceCapabilities>, instance, (InputDev
iceCapabilities::create(false))); |
| 33 return instance; | 32 return instance; |
| 34 } | 33 } |
| 35 | 34 |
| 36 } // namespace blink | 35 } // namespace blink |
| OLD | NEW |