Source code
Revision control
Copy as Markdown
Other Tools
/* 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
#ifndef mozilla_dom_TextFormatUpdateEvent_h_
#define mozilla_dom_TextFormatUpdateEvent_h_
#include "mozilla/dom/Event.h"
#include "mozilla/dom/TextFormatUpdateEventBinding.h"
namespace mozilla::dom {
class TextFormatUpdateEvent final : public Event {
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(TextFormatUpdateEvent, Event)
static already_AddRefed<TextFormatUpdateEvent> Constructor(
const GlobalObject& aGlobal, const nsAString& aType,
const TextFormatUpdateEventInit& aOptions);
JSObject* WrapObjectInternal(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
void GetTextFormats(nsTArray<RefPtr<TextFormat>>& aRetVal) {}
private:
explicit TextFormatUpdateEvent(EventTarget* aOwner)
: Event(aOwner, nullptr, nullptr) {}
~TextFormatUpdateEvent() = default;
};
} // namespace mozilla::dom
#endif // mozilla_dom_TextFormatUpdateEvent_h_