michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=8 et : michael@0: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_layers_ShadowLayerChild_h michael@0: #define mozilla_layers_ShadowLayerChild_h michael@0: michael@0: #include "mozilla/Attributes.h" // for MOZ_OVERRIDE michael@0: #include "mozilla/ipc/ProtocolUtils.h" michael@0: #include "mozilla/layers/PLayerChild.h" // for PLayerChild michael@0: michael@0: namespace mozilla { michael@0: namespace layers { michael@0: michael@0: class ShadowableLayer; michael@0: michael@0: class ShadowLayerChild : public PLayerChild michael@0: { michael@0: public: michael@0: ShadowLayerChild(ShadowableLayer* aLayer); michael@0: virtual ~ShadowLayerChild(); michael@0: michael@0: ShadowableLayer* layer() const { return mLayer; } michael@0: michael@0: protected: michael@0: virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE; michael@0: michael@0: private: michael@0: ShadowableLayer* mLayer; michael@0: }; michael@0: michael@0: } // namespace layers michael@0: } // namespace mozilla michael@0: michael@0: #endif // ifndef mozilla_layers_ShadowLayerChild_h