2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
1999-08-06 09:13:07 +04:00
|
|
|
#ifndef nsGfxCheckboxControlFrame_h___
|
|
|
|
#define nsGfxCheckboxControlFrame_h___
|
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2000-02-09 22:34:39 +03:00
|
|
|
#include "nsFormControlFrame.h"
|
1999-08-06 09:13:07 +04:00
|
|
|
|
2010-02-10 01:06:37 +03:00
|
|
|
class nsGfxCheckboxControlFrame : public nsFormControlFrame
|
2000-02-09 22:34:39 +03:00
|
|
|
{
|
1999-08-06 09:13:07 +04:00
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2014-09-01 07:36:37 +04:00
|
|
|
explicit nsGfxCheckboxControlFrame(nsStyleContext* aContext);
|
2000-03-24 18:02:02 +03:00
|
|
|
virtual ~nsGfxCheckboxControlFrame();
|
2009-09-12 20:49:24 +04:00
|
|
|
|
2014-01-06 03:31:14 +04:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const override {
|
2001-11-14 04:33:42 +03:00
|
|
|
return MakeFrameName(NS_LITERAL_STRING("CheckboxControl"), aResult);
|
1999-08-06 09:13:07 +04:00
|
|
|
}
|
1999-11-02 01:12:45 +03:00
|
|
|
#endif
|
2000-01-11 23:33:36 +03:00
|
|
|
|
2013-02-14 15:12:27 +04:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
2015-03-21 19:28:04 +03:00
|
|
|
const nsDisplayListSet& aLists) override;
|
2000-02-09 22:34:39 +03:00
|
|
|
|
2001-08-17 07:13:07 +04:00
|
|
|
#ifdef ACCESSIBILITY
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual mozilla::a11y::AccType AccessibleType() override;
|
2001-08-17 07:13:07 +04:00
|
|
|
#endif
|
2001-05-18 03:52:32 +04:00
|
|
|
|
2000-02-09 22:34:39 +03:00
|
|
|
protected:
|
1999-08-11 08:45:49 +04:00
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
bool IsChecked();
|
|
|
|
bool IsIndeterminate();
|
1999-08-06 09:13:07 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2006-07-13 09:05:54 +04:00
|
|
|
|