- add sources.
[platform/framework/web/crosswalk.git] / src / content / public / browser / android / content_view_layer_renderer.h
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H
7
8 // This interface is used by consumers of the ContentViewRenderView to
9 // attach/detach layers.
10
11 namespace WebKit {
12 class WebLayer;
13 }
14
15 namespace content {
16
17 class ContentViewLayerRenderer {
18  public:
19   virtual void AttachLayer(WebKit::WebLayer* layer) = 0;
20   virtual void DetachLayer(WebKit::WebLayer* layer) = 0;
21
22  protected:
23   virtual ~ContentViewLayerRenderer() {}
24 };
25
26 }  // namespace content
27
28 #endif  // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H