2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-06-10 16:44:50 -07:00
|
|
|
#ifndef mozilla_a11y_XULColorPickerAccessible_h__
|
|
|
|
#define mozilla_a11y_XULColorPickerAccessible_h__
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
#include "AccessibleWrap.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-06-10 16:44:50 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2009-11-09 21:58:52 -08:00
|
|
|
/**
|
|
|
|
* Used for color button in colorpicker palette.
|
|
|
|
*/
|
2012-06-10 16:44:50 -07:00
|
|
|
class XULColorPickerTileAccessible : public AccessibleWrap
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2012-06-10 16:44:50 -07:00
|
|
|
XULColorPickerTileAccessible(nsIContent* aContent,
|
|
|
|
DocAccessible* aDoc);
|
2008-10-10 05:26:55 -07:00
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
// Accessible
|
2015-01-01 22:11:21 -08:00
|
|
|
virtual void Value(nsString& aValue) MOZ_OVERRIDE;
|
2014-09-16 10:30:23 -07:00
|
|
|
virtual a11y::role NativeRole() MOZ_OVERRIDE;
|
|
|
|
virtual uint64_t NativeState() MOZ_OVERRIDE;
|
|
|
|
virtual uint64_t NativeInteractiveState() const MOZ_OVERRIDE;
|
2011-09-27 18:46:11 -07:00
|
|
|
|
|
|
|
// Widgets
|
2015-01-01 22:11:21 -08:00
|
|
|
virtual Accessible* ContainerWidget() const MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2009-11-09 21:58:52 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Used for colorpicker button (xul:colorpicker@type="button").
|
|
|
|
*/
|
2012-06-10 16:44:50 -07:00
|
|
|
class XULColorPickerAccessible : public XULColorPickerTileAccessible
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2012-06-10 16:44:50 -07:00
|
|
|
XULColorPickerAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2008-11-03 19:37:46 -08:00
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
// Accessible
|
2014-09-16 10:30:23 -07:00
|
|
|
virtual a11y::role NativeRole() MOZ_OVERRIDE;
|
|
|
|
virtual uint64_t NativeState() MOZ_OVERRIDE;
|
2009-11-09 21:58:52 -08:00
|
|
|
|
2011-09-27 18:46:11 -07:00
|
|
|
// Widgets
|
2015-01-01 22:11:21 -08:00
|
|
|
virtual bool IsWidget() const MOZ_OVERRIDE;
|
|
|
|
virtual bool IsActiveWidget() const MOZ_OVERRIDE;
|
|
|
|
virtual bool AreItemsOperable() const MOZ_OVERRIDE;
|
2011-09-27 18:46:11 -07:00
|
|
|
|
2013-09-06 12:27:07 -07:00
|
|
|
virtual bool IsAcceptableChild(Accessible* aPossibleChild) const MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2012-06-10 16:44:50 -07:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|