blob: 5c60e53d4a89a059beffb2f970b7e1a6e477d860 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/input/InputDeviceCapabilities.h"
namespace blink {
InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents)
{
m_firesTouchEvents = firesTouchEvents;
}
InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesInit& initializer)
{
m_firesTouchEvents = initializer.firesTouchEvents();
}
InputDeviceCapabilities::~InputDeviceCapabilities()
{
}
InputDeviceCapabilities* InputDeviceCapabilities::firesTouchEventsSourceCapabilities()
{
DEFINE_STATIC_LOCAL(Persistent<InputDeviceCapabilities>, instance, (InputDeviceCapabilities::create(true)));
return instance;
}
InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()
{
DEFINE_STATIC_LOCAL(Persistent<InputDeviceCapabilities>, instance, (InputDeviceCapabilities::create(false)));
return instance;
}
} // namespace blink