/work/obj-fuzz/dist/include/mozilla/dom/XULMenuElement.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
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 | | #ifndef mozilla_dom_XULMenuElement_h |
8 | | #define mozilla_dom_XULMenuElement_h |
9 | | |
10 | | #include "nsXULElement.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | class KeyboardEvent; |
16 | | |
17 | | class XULMenuElement final : public nsXULElement |
18 | | { |
19 | | public: |
20 | | |
21 | | explicit XULMenuElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) |
22 | | : nsXULElement(std::move(aNodeInfo)) |
23 | | { |
24 | | } |
25 | | |
26 | | MOZ_CAN_RUN_SCRIPT already_AddRefed<Element> GetActiveChild(); |
27 | | MOZ_CAN_RUN_SCRIPT void SetActiveChild(Element* arg); |
28 | | MOZ_CAN_RUN_SCRIPT bool HandleKeyPress(KeyboardEvent& keyEvent); |
29 | | MOZ_CAN_RUN_SCRIPT bool OpenedWithKey(); |
30 | | |
31 | | private: |
32 | 0 | virtual ~XULMenuElement() {} |
33 | | JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) final; |
34 | | |
35 | | nsIFrame* GetFrame(); |
36 | | }; |
37 | | |
38 | | } // namespace dom |
39 | | } // namespace mozilla |
40 | | |
41 | | #endif // XULMenuElement_h |