Copy as Markdown

Other Tools

/* -*- 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
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* THIS FILE IS AUTOGENERATED FROM CaretStateChangedEvent.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_CARETSTATECHANGEDEVENT_H_
#define DOM_CARETSTATECHANGEDEVENT_H_
#include "CaretStateChangedEventBinding.h"
#include "mozilla/Attributes.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/CaretStateChangedEventBinding.h"
#include "mozilla/dom/Event.h"
struct JSContext;
namespace mozilla::dom {
class CaretStateChangedEvent : public Event
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(CaretStateChangedEvent, Event)
protected:
virtual ~CaretStateChangedEvent();
explicit CaretStateChangedEvent(mozilla::dom::EventTarget* aOwner);
bool mCollapsed;
RefPtr<DOMRectReadOnly> mBoundingClientRect;
CaretChangedReason mReason;
bool mCaretVisible;
bool mCaretVisuallyVisible;
bool mSelectionVisible;
bool mSelectionEditable;
nsString mSelectedTextContent;
int32_t mClientX;
int32_t mClientY;
public:
CaretStateChangedEvent* AsCaretStateChangedEvent() override;
JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<CaretStateChangedEvent> Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const CaretStateChangedEventInit& aEventInit);
static already_AddRefed<CaretStateChangedEvent> Constructor(const GlobalObject& aGlobal, const nsAString& aType, const CaretStateChangedEventInit& aEventInit);
bool Collapsed() const;
DOMRectReadOnly* GetBoundingClientRect() const;
CaretChangedReason Reason() const;
bool CaretVisible() const;
bool CaretVisuallyVisible() const;
bool SelectionVisible() const;
bool SelectionEditable() const;
void GetSelectedTextContent(nsString& aRetVal) const;
int32_t ClientX() const;
int32_t ClientY() const;
};
} // namespace mozilla::dom
#endif // DOM_CARETSTATECHANGEDEVENT_H_