2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-05-06 05:08:08 -07:00
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
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-05-23 11:05:57 -07:00
|
|
|
#include "TextLeafAccessibleWrap.h"
|
2010-03-16 23:02:28 -07:00
|
|
|
|
2013-05-06 05:08:08 -07:00
|
|
|
#include "sdnTextAccessible.h"
|
2011-08-17 10:43:20 -07:00
|
|
|
#include "Statistics.h"
|
2011-04-07 18:04:37 -07:00
|
|
|
|
2011-08-17 10:43:20 -07:00
|
|
|
using namespace mozilla::a11y;
|
|
|
|
|
2013-05-06 05:08:08 -07:00
|
|
|
IMPL_IUNKNOWN_QUERY_HEAD(TextLeafAccessibleWrap)
|
|
|
|
if (aIID == IID_ISimpleDOMText) {
|
2011-08-17 10:43:20 -07:00
|
|
|
statistics::ISimpleDOMUsed();
|
2013-05-06 05:08:08 -07:00
|
|
|
*aInstancePtr = static_cast<ISimpleDOMText*>(new sdnTextAccessible(this));
|
2013-09-19 16:55:03 -07:00
|
|
|
static_cast<IUnknown*>(*aInstancePtr)->AddRef();
|
2013-05-06 05:08:08 -07:00
|
|
|
return S_OK;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2013-05-06 05:08:08 -07:00
|
|
|
IMPL_IUNKNOWN_QUERY_TAIL_INHERITED(AccessibleWrap)
|