gecko-dev/layout/forms/nsGfxCheckboxControlFrame.h

41 строка
1.2 KiB
C
Исходник Обычный вид История

/* -*- 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___
#include "mozilla/Attributes.h"
#include "nsFormControlFrame.h"
1999-08-06 09:13:07 +04:00
class nsGfxCheckboxControlFrame : public nsFormControlFrame
{
1999-08-06 09:13:07 +04:00
public:
NS_DECL_FRAMEARENA_HELPERS
explicit nsGfxCheckboxControlFrame(nsStyleContext* aContext);
virtual ~nsGfxCheckboxControlFrame();
#ifdef DEBUG_FRAME_DUMP
virtual nsresult GetFrameName(nsAString& aResult) const override {
return MakeFrameName(NS_LITERAL_STRING("CheckboxControl"), aResult);
1999-08-06 09:13:07 +04:00
}
#endif
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
const nsRect& aDirtyRect,
const nsDisplayListSet& aLists) override;
2001-08-17 07:13:07 +04:00
#ifdef ACCESSIBILITY
virtual mozilla::a11y::AccType AccessibleType() override;
2001-08-17 07:13:07 +04:00
#endif
protected:
bool IsChecked();
bool IsIndeterminate();
1999-08-06 09:13:07 +04:00
};
#endif