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