2015-05-03 19:32:37 +00: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 11:12:37 +00: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 14:38:51 +00:00
|
|
|
|
2013-01-03 06:17:03 +00:00
|
|
|
#ifndef mozilla_dom_SVGGraphicsElement_h
|
|
|
|
#define mozilla_dom_SVGGraphicsElement_h
|
2000-04-01 14:38:51 +00:00
|
|
|
|
2013-03-02 06:08:42 +00:00
|
|
|
#include "mozilla/dom/SVGTests.h"
|
2013-01-06 06:25:54 +00:00
|
|
|
#include "mozilla/dom/SVGTransformableElement.h"
|
2000-04-01 14:38:51 +00:00
|
|
|
|
2013-01-03 06:17:03 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
typedef SVGTransformableElement SVGGraphicsElementBase;
|
|
|
|
|
|
|
|
class SVGGraphicsElement : public SVGGraphicsElementBase, public SVGTests {
|
2001-12-12 07:59:31 +00:00
|
|
|
protected:
|
2018-09-21 20:45:49 +00:00
|
|
|
explicit SVGGraphicsElement(
|
|
|
|
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
|
2014-06-24 16:36:45 +00:00
|
|
|
~SVGGraphicsElement();
|
2013-01-03 06:17:03 +00:00
|
|
|
|
2000-04-01 14:38:51 +00:00
|
|
|
public:
|
2013-01-03 06:17:03 +00:00
|
|
|
// interfaces:
|
2001-12-12 07:59:31 +00:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2016-06-28 14:24:48 +00:00
|
|
|
|
2018-12-17 21:11:12 +00:00
|
|
|
bool IsFocusableInternal(int32_t* aTabIndex, bool aWithMouse) override;
|
2018-12-21 08:58:14 +00:00
|
|
|
SVGElement* AsSVGElement() final { return this; }
|
2018-12-19 09:41:11 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// returns true if focusability has been definitively determined otherwise
|
|
|
|
// false
|
|
|
|
bool IsSVGFocusable(bool* aIsFocusable, int32_t* aTabIndex);
|
2000-04-01 14:38:51 +00:00
|
|
|
};
|
|
|
|
|
2013-01-03 06:17:03 +00:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGGraphicsElement_h
|