2010-07-22 01:17:33 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
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/. */
|
2010-07-22 01:17:33 +04:00
|
|
|
|
|
|
|
#ifndef mozilla_layers_ShadowLayerParent_h
|
|
|
|
#define mozilla_layers_ShadowLayerParent_h
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
#include "mozilla/Attributes.h" // for override
|
2013-08-12 03:17:23 +04:00
|
|
|
#include "mozilla/ipc/ProtocolUtils.h"
|
|
|
|
#include "mozilla/layers/PLayerParent.h" // for PLayerParent
|
|
|
|
#include "nsAutoPtr.h" // for nsRefPtr
|
2010-07-22 01:17:33 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
class ContainerLayer;
|
|
|
|
class Layer;
|
|
|
|
|
2014-02-20 20:40:55 +04:00
|
|
|
class CanvasLayerComposite;
|
|
|
|
class ColorLayerComposite;
|
|
|
|
class ContainerLayerComposite;
|
|
|
|
class ImageLayerComposite;
|
|
|
|
class RefLayerComposite;
|
2014-09-26 21:06:08 +04:00
|
|
|
class PaintedLayerComposite;
|
2014-02-20 20:40:55 +04:00
|
|
|
|
2010-07-22 01:17:33 +04:00
|
|
|
class ShadowLayerParent : public PLayerParent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ShadowLayerParent();
|
|
|
|
|
|
|
|
virtual ~ShadowLayerParent();
|
|
|
|
|
|
|
|
void Bind(Layer* layer);
|
2011-01-06 07:54:47 +03:00
|
|
|
void Destroy();
|
2010-07-22 01:17:33 +04:00
|
|
|
|
|
|
|
Layer* AsLayer() const { return mLayer; }
|
2014-02-20 20:40:55 +04:00
|
|
|
|
|
|
|
ContainerLayerComposite* AsContainerLayerComposite() const;
|
|
|
|
CanvasLayerComposite* AsCanvasLayerComposite() const;
|
|
|
|
ColorLayerComposite* AsColorLayerComposite() const;
|
|
|
|
ImageLayerComposite* AsImageLayerComposite() const;
|
|
|
|
RefLayerComposite* AsRefLayerComposite() const;
|
2014-09-26 21:06:08 +04:00
|
|
|
PaintedLayerComposite* AsPaintedLayerComposite() const;
|
2010-07-22 01:17:33 +04:00
|
|
|
|
|
|
|
private:
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason why) override;
|
2010-07-22 01:17:33 +04:00
|
|
|
|
2015-07-06 06:02:26 +03:00
|
|
|
void Disconnect();
|
|
|
|
|
2015-10-18 08:24:48 +03:00
|
|
|
RefPtr<Layer> mLayer;
|
2010-07-22 01:17:33 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // ifndef mozilla_layers_ShadowLayerParent_h
|