2002-05-11 02:34:53 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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/. */
|
2002-05-11 02:34:53 +04:00
|
|
|
|
2012-10-13 10:34:21 +04:00
|
|
|
#ifndef mozilla_a11y_HTMLWin32ObjectAccessible_h_
|
|
|
|
#define mozilla_a11y_HTMLWin32ObjectAccessible_h_
|
2002-05-11 02:34:53 +04:00
|
|
|
|
2012-06-04 16:32:29 +04:00
|
|
|
#include "BaseAccessibles.h"
|
2002-05-11 02:34:53 +04:00
|
|
|
|
|
|
|
struct IAccessible;
|
|
|
|
|
2012-10-13 10:34:21 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
|
|
|
class HTMLWin32ObjectOwnerAccessible : public AccessibleWrap
|
2005-09-22 01:44:05 +04:00
|
|
|
{
|
|
|
|
public:
|
2012-10-13 10:34:21 +04:00
|
|
|
// This will own the HTMLWin32ObjectAccessible. We create this where the
|
2005-09-22 01:44:05 +04:00
|
|
|
// <object> or <embed> exists in the tree, so that get_accNextSibling() etc.
|
|
|
|
// will still point to Gecko accessible sibling content. This is necessary
|
|
|
|
// because the native plugin accessible doesn't know where it exists in the
|
|
|
|
// Mozilla tree, and returns null for previous and next sibling. This would
|
|
|
|
// have the effect of cutting off all content after the plugin.
|
2012-10-13 10:34:21 +04:00
|
|
|
HTMLWin32ObjectOwnerAccessible(nsIContent* aContent,
|
2014-10-22 04:49:28 +04:00
|
|
|
DocAccessible* aDoc, void* aHwnd);
|
2012-10-13 10:34:21 +04:00
|
|
|
virtual ~HTMLWin32ObjectOwnerAccessible() {}
|
2008-11-01 06:58:07 +03:00
|
|
|
|
2012-05-29 05:18:45 +04:00
|
|
|
// Accessible
|
2013-10-29 07:30:55 +04:00
|
|
|
virtual void Shutdown();
|
2012-01-12 07:07:35 +04:00
|
|
|
virtual mozilla::a11y::role NativeRole();
|
2012-06-04 09:41:06 +04:00
|
|
|
virtual bool NativelyUnavailable() const;
|
2009-10-15 07:53:08 +04:00
|
|
|
|
2005-09-22 01:44:05 +04:00
|
|
|
protected:
|
2009-12-10 22:12:19 +03:00
|
|
|
|
2012-05-29 05:18:45 +04:00
|
|
|
// Accessible
|
2009-12-10 22:12:19 +03:00
|
|
|
virtual void CacheChildren();
|
|
|
|
|
2005-09-22 01:44:05 +04:00
|
|
|
void* mHwnd;
|
2012-05-29 05:18:45 +04:00
|
|
|
nsRefPtr<Accessible> mNativeAccessible;
|
2005-09-22 01:44:05 +04:00
|
|
|
};
|
|
|
|
|
2002-05-11 02:34:53 +04:00
|
|
|
/**
|
|
|
|
* This class is used only internally, we never! send out an IAccessible linked
|
|
|
|
* back to this object. This class is used to represent a plugin object when
|
2012-05-29 05:18:45 +04:00
|
|
|
* referenced as a child or sibling of another Accessible node. We need only
|
2014-10-22 04:49:28 +04:00
|
|
|
* a limited portion of the Accessible interface implemented here. The
|
2002-05-11 02:34:53 +04:00
|
|
|
* in depth accessible information will be returned by the actual IAccessible
|
|
|
|
* object returned by us in Accessible::NewAccessible() that gets the IAccessible
|
|
|
|
* from the windows system from the window handle.
|
|
|
|
*/
|
2012-10-13 10:34:21 +04:00
|
|
|
class HTMLWin32ObjectAccessible : public DummyAccessible
|
2002-05-11 02:34:53 +04:00
|
|
|
{
|
|
|
|
public:
|
2014-10-22 04:49:28 +04:00
|
|
|
HTMLWin32ObjectAccessible(void* aHwnd, DocAccessible* aDoc);
|
2012-10-13 10:34:21 +04:00
|
|
|
virtual ~HTMLWin32ObjectAccessible() {}
|
2012-02-11 11:45:10 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void GetNativeInterface(void** aNativeAccessible) override;
|
2002-05-11 02:34:53 +04:00
|
|
|
|
|
|
|
protected:
|
2003-04-02 00:02:51 +04:00
|
|
|
void* mHwnd;
|
2002-05-11 02:34:53 +04:00
|
|
|
};
|
|
|
|
|
2012-10-13 10:34:21 +04:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|