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: */
|
2015-04-15 02:48:21 +03: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/. */
|
|
|
|
|
2015-10-13 23:17:00 +03:00
|
|
|
#ifndef mozilla_dom_AnimationEffectReadOnly_h
|
|
|
|
#define mozilla_dom_AnimationEffectReadOnly_h
|
2015-04-15 02:48:21 +03:00
|
|
|
|
2015-10-13 23:17:00 +03:00
|
|
|
#include "mozilla/dom/BindingDeclarations.h"
|
2015-04-15 02:48:21 +03:00
|
|
|
#include "nsCycleCollectionParticipant.h"
|
2015-10-13 23:17:00 +03:00
|
|
|
#include "nsWrapperCache.h"
|
2015-04-15 02:48:21 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2016-01-13 20:37:00 +03:00
|
|
|
class AnimationEffectTimingReadOnly;
|
2015-10-13 23:17:00 +03:00
|
|
|
struct ComputedTimingProperties;
|
2015-04-15 02:48:21 +03:00
|
|
|
|
2015-10-13 23:17:00 +03:00
|
|
|
class AnimationEffectReadOnly : public nsISupports,
|
|
|
|
public nsWrapperCache
|
|
|
|
{
|
2015-04-15 02:48:21 +03:00
|
|
|
public:
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
2015-04-30 16:06:43 +03:00
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(AnimationEffectReadOnly)
|
2015-04-15 02:48:21 +03:00
|
|
|
|
2015-04-30 16:06:43 +03:00
|
|
|
explicit AnimationEffectReadOnly(nsISupports* aParent)
|
2015-04-15 02:48:21 +03:00
|
|
|
: mParent(aParent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
nsISupports* GetParentObject() const { return mParent; }
|
|
|
|
|
2016-01-13 20:41:00 +03:00
|
|
|
virtual already_AddRefed<AnimationEffectTimingReadOnly> Timing() const = 0;
|
2016-01-13 20:37:00 +03:00
|
|
|
|
2016-01-13 20:41:00 +03:00
|
|
|
virtual void GetComputedTimingAsDict(ComputedTimingProperties& aRetVal) const = 0;
|
2015-10-13 23:17:00 +03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~AnimationEffectReadOnly() = default;
|
|
|
|
|
2015-04-15 02:48:21 +03:00
|
|
|
protected:
|
|
|
|
nsCOMPtr<nsISupports> mParent;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2015-10-13 23:17:00 +03:00
|
|
|
#endif // mozilla_dom_AnimationEffectReadOnly_h
|