| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 #include "config.h" |
| 5 #include "core/input/InputDevice.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 InputDevice::InputDevice() |
| 10 { |
| 11 } |
| 12 |
| 13 InputDevice::InputDevice(bool firesTouchEvents) |
| 14 { |
| 15 m_firesTouchEvents = firesTouchEvents; |
| 16 } |
| 17 |
| 18 InputDevice::InputDevice(const InputDeviceInit& initializer) |
| 19 { |
| 20 m_firesTouchEvents = initializer.firesTouchEvents(); |
| 21 } |
| 22 |
| 23 InputDevice::~InputDevice() |
| 24 { |
| 25 } |
| 26 |
| 27 PassRefPtrWillBeRawPtr<InputDevice> InputDevice::touchEventInstance() |
| 28 { |
| 29 DEFINE_STATIC_REF(InputDevice, instance, (InputDevice::create(true))); |
| 30 return instance; |
| 31 } |
| 32 |
| 33 PassRefPtrWillBeRawPtr<InputDevice> InputDevice::nonTouchEventInstance() |
| 34 { |
| 35 DEFINE_STATIC_REF(InputDevice, instance, (InputDevice::create(false))); |
| 36 return instance; |
| 37 } |
| 38 |
| 39 DEFINE_TRACE(InputDevice) |
| 40 { |
| 41 } |
| 42 |
| 43 } // namespace blink |
| OLD | NEW |