chromium/third_party/blink/renderer/core/events/input_event.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/core/events/input_event.h"

#include <algorithm>

#include "third_party/blink/renderer/core/clipboard/data_transfer.h"
#include "third_party/blink/renderer/core/dom/events/event_dispatcher.h"
#include "third_party/blink/renderer/core/dom/range.h"
#include "third_party/blink/renderer/core/editing/commands/editing_command_type.h"

namespace blink {

namespace {

const struct {} kInputTypeStringNameMap[] =;

static_assert;

String ConvertInputTypeToString(InputEvent::InputType input_type) {}

InputEvent::InputType ConvertStringToInputType(const String& string_name) {}

bool InputTypeIsCancelable(InputEvent::InputType input_type) {}

}  // anonymous namespace

InputEvent::InputEvent(const AtomicString& type,
                       const InputEventInit* initializer)
    :{}

InputEvent::InputEvent(const AtomicString& type,
                       const UIEventInit& init,
                       InputType input_type,
                       const String& data,
                       DataTransfer* data_transfer,
                       EventIsComposing is_composing,
                       const StaticRangeVector* ranges)
    :{}

/* static */
InputEvent* InputEvent::CreateBeforeInput(InputType input_type,
                                          const String& data,
                                          EventIsComposing is_composing,
                                          const StaticRangeVector* ranges) {}

/* static */
InputEvent* InputEvent::CreateBeforeInput(InputType input_type,
                                          DataTransfer* data_transfer,
                                          EventIsComposing is_composing,
                                          const StaticRangeVector* ranges) {}

/* static */
InputEvent* InputEvent::CreateInput(InputType input_type,
                                    const String& data,
                                    EventIsComposing is_composing,
                                    const StaticRangeVector* ranges) {}

String InputEvent::inputType() const {}

StaticRangeVector InputEvent::getTargetRanges() const {}

bool InputEvent::IsInputEvent() const {}

void InputEvent::Trace(Visitor* visitor) const {}

DispatchEventResult InputEvent::DispatchEvent(EventDispatcher& dispatcher) {}

}  // namespace blink