Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : /* THIS FILE IS AUTOGENERATED FROM CaretStateChangedEvent.webidl BY Codegen.py - DO NOT EDIT */
8 :
9 : #ifndef mozilla_dom_CaretStateChangedEvent_h
10 : #define mozilla_dom_CaretStateChangedEvent_h
11 :
12 : #include "CaretStateChangedEventBinding.h"
13 : #include "mozilla/Attributes.h"
14 : #include "mozilla/ErrorResult.h"
15 : #include "mozilla/dom/BindingUtils.h"
16 : #include "mozilla/dom/CaretStateChangedEventBinding.h"
17 : #include "mozilla/dom/Event.h"
18 :
19 : struct JSContext;
20 : namespace mozilla {
21 : namespace dom {
22 :
23 : class CaretStateChangedEvent : public Event
24 : {
25 : public:
26 : NS_DECL_ISUPPORTS_INHERITED
27 0 : NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(CaretStateChangedEvent, Event)
28 : protected:
29 : virtual ~CaretStateChangedEvent();
30 : explicit CaretStateChangedEvent(mozilla::dom::EventTarget* aOwner);
31 :
32 : bool mCollapsed;
33 : RefPtr<DOMRectReadOnly> mBoundingClientRect;
34 : CaretChangedReason mReason;
35 : bool mCaretVisible;
36 : bool mCaretVisuallyVisible;
37 : bool mSelectionVisible;
38 : bool mSelectionEditable;
39 : nsString mSelectedTextContent;
40 :
41 : public:
42 : virtual CaretStateChangedEvent* AsCaretStateChangedEvent() override;
43 :
44 : virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
45 :
46 : static already_AddRefed<CaretStateChangedEvent> Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const CaretStateChangedEventInit& aEventInit);
47 :
48 : static already_AddRefed<CaretStateChangedEvent> Constructor(const GlobalObject& aGlobal, const nsAString& aType, const CaretStateChangedEventInit& aEventInit, ErrorResult& aRv);
49 :
50 : bool Collapsed() const;
51 :
52 : DOMRectReadOnly* GetBoundingClientRect() const;
53 :
54 : CaretChangedReason Reason() const;
55 :
56 : bool CaretVisible() const;
57 :
58 : bool CaretVisuallyVisible() const;
59 :
60 : bool SelectionVisible() const;
61 :
62 : bool SelectionEditable() const;
63 :
64 : void GetSelectedTextContent(nsString& aRetVal) const;
65 : };
66 :
67 : } // namespace dom
68 : } // namespace mozilla
69 :
70 : #endif // mozilla_dom_CaretStateChangedEvent_h
|