2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
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/. */
|
2000-04-01 18:38:51 +04:00
|
|
|
|
2013-01-03 10:17:03 +04:00
|
|
|
#ifndef mozilla_dom_SVGGraphicsElement_h
|
|
|
|
#define mozilla_dom_SVGGraphicsElement_h
|
2000-04-01 18:38:51 +04:00
|
|
|
|
2013-03-02 10:08:42 +04:00
|
|
|
#include "mozilla/dom/SVGTests.h"
|
2013-01-06 10:25:54 +04:00
|
|
|
#include "mozilla/dom/SVGTransformableElement.h"
|
2000-04-01 18:38:51 +04:00
|
|
|
|
2013-01-03 10:17:03 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
typedef SVGTransformableElement SVGGraphicsElementBase;
|
|
|
|
|
|
|
|
class SVGGraphicsElement : public SVGGraphicsElementBase, public SVGTests {
|
2001-12-12 10:59:31 +03:00
|
|
|
protected:
|
2018-09-21 23:45:49 +03:00
|
|
|
explicit SVGGraphicsElement(
|
|
|
|
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
|
2014-06-24 20:36:45 +04:00
|
|
|
~SVGGraphicsElement();
|
2013-01-03 10:17:03 +04:00
|
|
|
|
2000-04-01 18:38:51 +04:00
|
|
|
public:
|
2013-01-03 10:17:03 +04:00
|
|
|
// interfaces:
|
2001-12-12 10:59:31 +03:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2016-06-28 17:24:48 +03:00
|
|
|
|
2018-12-18 00:11:12 +03:00
|
|
|
bool IsFocusableInternal(int32_t* aTabIndex, bool aWithMouse) override;
|
2018-02-04 12:40:57 +03:00
|
|
|
nsSVGElement* AsSVGElement() final { return this; }
|
2018-12-19 12:41:11 +03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// returns true if focusability has been definitively determined otherwise
|
|
|
|
// false
|
|
|
|
bool IsSVGFocusable(bool* aIsFocusable, int32_t* aTabIndex);
|
2000-04-01 18:38:51 +04:00
|
|
|
};
|
|
|
|
|
2013-01-03 10:17:03 +04:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGGraphicsElement_h
|