Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 : #ifndef nsGfxCheckboxControlFrame_h___
6 : #define nsGfxCheckboxControlFrame_h___
7 :
8 : #include "mozilla/Attributes.h"
9 : #include "nsFormControlFrame.h"
10 :
11 : class nsGfxCheckboxControlFrame : public nsFormControlFrame
12 : {
13 : public:
14 0 : NS_DECL_FRAMEARENA_HELPERS(nsGfxCheckboxControlFrame)
15 :
16 : explicit nsGfxCheckboxControlFrame(nsStyleContext* aContext);
17 : virtual ~nsGfxCheckboxControlFrame();
18 :
19 : #ifdef DEBUG_FRAME_DUMP
20 0 : virtual nsresult GetFrameName(nsAString& aResult) const override {
21 0 : return MakeFrameName(NS_LITERAL_STRING("CheckboxControl"), aResult);
22 : }
23 : #endif
24 :
25 : #ifdef MOZ_WIDGET_ANDROID
26 : virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
27 : const nsRect& aDirtyRect,
28 : const nsDisplayListSet& aLists) override;
29 : #endif
30 :
31 : #ifdef ACCESSIBILITY
32 : virtual mozilla::a11y::AccType AccessibleType() override;
33 : #endif
34 :
35 : protected:
36 :
37 : bool IsChecked();
38 : bool IsIndeterminate();
39 : };
40 :
41 : #endif
42 :
|