| OLD | NEW |
| (Empty) | |
| 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_COMPOSITOR_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/gfx/size.h" |
| 11 |
| 12 namespace WebKit { |
| 13 class WebLayer; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 |
| 18 // An interface to the browser-side compositor. |
| 19 class Compositor { |
| 20 public: |
| 21 Compositor() {} |
| 22 virtual ~Compositor() {} |
| 23 |
| 24 static Compositor* GetInstance(); |
| 25 |
| 26 virtual void SetRootLayer(const WebKit::WebLayer& root) = 0; |
| 27 virtual void SetWindowBounds(const gfx::Size& size) = 0; |
| 28 virtual void SetWindowSurface(ANativeWindow* window) = 0; |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ |
| OLD | NEW |