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
|
|
|
|
|
|
|
#ifndef _nsXULColorPickerAccessible_H_
|
|
|
|
#define _nsXULColorPickerAccessible_H_
|
|
|
|
|
2009-11-09 21:58:52 -08:00
|
|
|
#include "nsAccessibleWrap.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-11-09 21:58:52 -08:00
|
|
|
/**
|
|
|
|
* Used for color button in colorpicker palette.
|
|
|
|
*/
|
|
|
|
class nsXULColorPickerTileAccessible : public nsAccessibleWrap
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2012-02-07 14:38:54 -08:00
|
|
|
nsXULColorPickerTileAccessible(nsIContent* aContent,
|
2012-05-27 02:01:40 -07:00
|
|
|
DocAccessible* aDoc);
|
2008-10-10 05:26:55 -07:00
|
|
|
|
|
|
|
// nsAccessible
|
2012-04-09 02:48:41 -07:00
|
|
|
virtual void Value(nsString& aValue);
|
2012-01-11 19:07:35 -08:00
|
|
|
virtual mozilla::a11y::role NativeRole();
|
2011-04-09 16:38:06 -07:00
|
|
|
virtual PRUint64 NativeState();
|
2011-09-27 18:46:11 -07:00
|
|
|
|
|
|
|
// Widgets
|
|
|
|
virtual nsAccessible* ContainerWidget() const;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2009-11-09 21:58:52 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Used for colorpicker button (xul:colorpicker@type="button").
|
|
|
|
*/
|
2007-03-22 10:30:00 -07:00
|
|
|
class nsXULColorPickerAccessible : public nsXULColorPickerTileAccessible
|
|
|
|
{
|
|
|
|
public:
|
2012-05-27 02:01:40 -07:00
|
|
|
nsXULColorPickerAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2008-11-03 19:37:46 -08:00
|
|
|
|
|
|
|
// nsAccessible
|
2012-01-11 19:07:35 -08:00
|
|
|
virtual mozilla::a11y::role NativeRole();
|
2011-04-09 16:38:06 -07:00
|
|
|
virtual PRUint64 NativeState();
|
2009-11-09 21:58:52 -08:00
|
|
|
|
2011-09-27 18:46:11 -07:00
|
|
|
// Widgets
|
|
|
|
virtual bool IsWidget() const;
|
|
|
|
virtual bool IsActiveWidget() const;
|
|
|
|
virtual bool AreItemsOperable() const;
|
|
|
|
|
2009-11-09 21:58:52 -08:00
|
|
|
protected:
|
|
|
|
|
|
|
|
// nsAccessible
|
|
|
|
virtual void CacheChildren();
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|