accessible/src/xpcom/xpcAccessibleValue.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 /* vim: set ts=2 et sw=2 tw=80: */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #ifndef mozilla_a11y_xpcAccessibleValue_h_
     8 #define mozilla_a11y_xpcAccessibleValue_h_
    10 #include "nsIAccessibleValue.h"
    12 namespace mozilla {
    13 namespace a11y {
    15 class xpcAccessibleValue : public nsIAccessibleValue
    16 {
    17 public:
    18   NS_IMETHOD GetMaximumValue(double* aValue) MOZ_FINAL MOZ_OVERRIDE;
    19   NS_IMETHOD GetMinimumValue(double* aValue) MOZ_FINAL MOZ_OVERRIDE;
    20   NS_IMETHOD GetCurrentValue(double* aValue) MOZ_FINAL MOZ_OVERRIDE;
    21   NS_IMETHOD SetCurrentValue(double aValue) MOZ_FINAL MOZ_OVERRIDE;
    22   NS_IMETHOD GetMinimumIncrement(double* aMinIncrement) MOZ_FINAL MOZ_OVERRIDE;
    24 private:
    25   xpcAccessibleValue() { }
    26   friend class Accessible;
    28   xpcAccessibleValue(const xpcAccessibleValue&) MOZ_DELETE;
    29   xpcAccessibleValue& operator =(const xpcAccessibleValue&) MOZ_DELETE;
    30 };
    32 } // namespace a11y
    33 } // namespace mozilla
    35 #endif

mercurial