blob: 2123bde877b66657587b662efac00058191d1300 [file] [log] [blame]
// Copyright 2013 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 "build/build_config.h"
#include "content/common/input/synthetic_gesture_params.h"
namespace content {
: gesture_source_type(DEFAULT_INPUT) {}
const SyntheticGestureParams& other)
: gesture_source_type(other.gesture_source_type) {}
SyntheticGestureParams::~SyntheticGestureParams() {}
bool SyntheticGestureParams::IsGestureSourceTypeSupported(
GestureSourceType gesture_source_type) {
if (gesture_source_type == DEFAULT_INPUT)
return true;
// These values should change very rarely. We thus hard-code them here rather
// than having to query the brower's SyntheticGestureTarget.
#if defined(USE_AURA)
return gesture_source_type == TOUCH_INPUT ||
gesture_source_type == MOUSE_INPUT;
#elif defined(OS_ANDROID)
// Android supports mouse wheel events, but mouse drag is not yet
// supported. See
return gesture_source_type == TOUCH_INPUT ||
gesture_source_type == MOUSE_INPUT;
return gesture_source_type == MOUSE_INPUT;
} // namespace content