layout/forms/nsGfxCheckboxControlFrame.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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___
     8 #include "mozilla/Attributes.h"
     9 #include "nsFormControlFrame.h"
    11 class nsGfxCheckboxControlFrame : public nsFormControlFrame
    12 {
    13 public:
    14   NS_DECL_FRAMEARENA_HELPERS
    16   nsGfxCheckboxControlFrame(nsStyleContext* aContext);
    17   virtual ~nsGfxCheckboxControlFrame();
    19 #ifdef DEBUG_FRAME_DUMP
    20   virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE {
    21     return MakeFrameName(NS_LITERAL_STRING("CheckboxControl"), aResult);
    22   }
    23 #endif
    25   virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
    26                                 const nsRect&           aDirtyRect,
    27                                 const nsDisplayListSet& aLists) MOZ_OVERRIDE;
    29 #ifdef ACCESSIBILITY
    30   virtual mozilla::a11y::AccType AccessibleType() MOZ_OVERRIDE;
    31 #endif
    33 protected:
    35   bool IsChecked();
    36   bool IsIndeterminate();
    37 };
    39 #endif

mercurial