mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
73847411fd
This also puts the Gecko-drawing of the checkbox / radio frames inside nsGfxRadioControlFrame and nsGfxCheckboxControlFrame behind the MOZ_WIDGET_ANDROID pragma for now. MozReview-Commit-ID: BEyRfEmwjZY --HG-- extra : rebase_source : fe42a65f55d822a2c7babd95898ec7520cc01616 extra : source : 9e2440ee6715204e88c7ae709a96ef7e1f707bdc
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
#ifndef nsGfxCheckboxControlFrame_h___
|
|
#define nsGfxCheckboxControlFrame_h___
|
|
|
|
#include "mozilla/Attributes.h"
|
|
#include "nsFormControlFrame.h"
|
|
|
|
class nsGfxCheckboxControlFrame : public nsFormControlFrame
|
|
{
|
|
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);
|
|
}
|
|
#endif
|
|
|
|
#ifdef MOZ_WIDGET_ANDROID
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
const nsRect& aDirtyRect,
|
|
const nsDisplayListSet& aLists) override;
|
|
#endif
|
|
|
|
#ifdef ACCESSIBILITY
|
|
virtual mozilla::a11y::AccType AccessibleType() override;
|
|
#endif
|
|
|
|
protected:
|
|
|
|
bool IsChecked();
|
|
bool IsIndeterminate();
|
|
};
|
|
|
|
#endif
|
|
|