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 "core/input/InputDeviceCapabilities.h" | 5 #include "core/input/InputDeviceCapabilities.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents) | 9 InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents) |
10 { | 10 { |
11 m_firesTouchEvents = firesTouchEvents; | 11 m_firesTouchEvents = firesTouchEvents; |
12 } | 12 } |
13 | 13 |
14 InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesIn
it& initializer) | 14 InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesIn
it& initializer) |
15 { | 15 { |
16 m_firesTouchEvents = initializer.firesTouchEvents(); | 16 m_firesTouchEvents = initializer.firesTouchEvents(); |
17 } | 17 } |
18 | 18 |
19 InputDeviceCapabilities::~InputDeviceCapabilities() | |
20 { | |
21 } | |
22 | |
23 InputDeviceCapabilities* InputDeviceCapabilities::firesTouchEventsSourceCapabili
ties() | 19 InputDeviceCapabilities* InputDeviceCapabilities::firesTouchEventsSourceCapabili
ties() |
24 { | 20 { |
25 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit
ies::create(true))); | 21 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit
ies::create(true))); |
26 return &instance; | 22 return &instance; |
27 } | 23 } |
28 | 24 |
29 InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCap
abilities() | 25 InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCap
abilities() |
30 { | 26 { |
31 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit
ies::create(false))); | 27 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit
ies::create(false))); |
32 return &instance; | 28 return &instance; |
33 } | 29 } |
34 | 30 |
35 } // namespace blink | 31 } // namespace blink |
OLD | NEW |