summaryrefslogtreecommitdiffstats
path: root/content/public/browser/android/content_view_layer_renderer.h
blob: 2911bb4f948311c34652dabd177855c8e51d420c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H_
#define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H_

// This interface is used by consumers of the ContentViewRenderView to
// attach/detach layers.

namespace blink {
class WebLayer;
}

namespace content {

class ContentViewLayerRenderer {
 public:
  virtual void AttachLayer(blink::WebLayer* layer) = 0;
  virtual void DetachLayer(blink::WebLayer* layer) = 0;

 protected:
  virtual ~ContentViewLayerRenderer() {}
};

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H_