/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
/* THIS FILE IS AUTOGENERATED FROM TextUpdateEvent.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_TEXTUPDATEEVENT_H_
#define DOM_TEXTUPDATEEVENT_H_
#include "mozilla/Attributes.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/TextUpdateEventBinding.h"
struct JSContext;
namespace mozilla::dom {
class TextUpdateEvent : public Event
{
public:
NS_INLINE_DECL_REFCOUNTING_INHERITED(TextUpdateEvent, Event)
protected:
virtual ~TextUpdateEvent();
explicit TextUpdateEvent(mozilla::dom::EventTarget* aOwner);
uint32_t mUpdateRangeStart;
uint32_t mUpdateRangeEnd;
nsString mText;
uint32_t mSelectionStart;
uint32_t mSelectionEnd;
public:
TextUpdateEvent* AsTextUpdateEvent() override;
JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<TextUpdateEvent> Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const TextUpdateEventInit& aOptions);
static already_AddRefed<TextUpdateEvent> Constructor(const GlobalObject& aGlobal, const nsAString& aType, const TextUpdateEventInit& aOptions);
uint32_t UpdateRangeStart() const;
uint32_t UpdateRangeEnd() const;
void GetText(nsString& aRetVal) const;
uint32_t SelectionStart() const;
uint32_t SelectionEnd() const;
};
} // namespace mozilla::dom
#endif // DOM_TEXTUPDATEEVENT_H_