| Index: ui/aura/window_port.h
|
| diff --git a/ui/aura/window_port.h b/ui/aura/window_port.h
|
| index df3da59658480ccb6e46a05c7d63acf8168b41d2..f0ea5bef9785c3341a7840d972834b39853275e3 100644
|
| --- a/ui/aura/window_port.h
|
| +++ b/ui/aura/window_port.h
|
| @@ -10,11 +10,17 @@
|
| #include <memory>
|
| #include <string>
|
|
|
| +#include "base/callback.h"
|
| #include "base/observer_list.h"
|
| #include "base/strings/string16.h"
|
| +#include "cc/surfaces/surface_id.h"
|
| #include "ui/aura/aura_export.h"
|
| #include "ui/base/class_property.h"
|
|
|
| +namespace cc {
|
| +class CompositorFrameSink;
|
| +}
|
| +
|
| namespace gfx {
|
| class Rect;
|
| }
|
| @@ -70,6 +76,16 @@ class AURA_EXPORT WindowPort {
|
| int64_t old_value,
|
| std::unique_ptr<ui::PropertyData> data) = 0;
|
|
|
| + // Called for creating a cc::CompositorFrameSink for the window.
|
| + virtual std::unique_ptr<cc::CompositorFrameSink>
|
| + CreateCompositorFrameSink() = 0;
|
| +
|
| + // Get the current cc::SurfaceId.
|
| + virtual cc::SurfaceId GetSurfaceId() const = 0;
|
| +
|
| + virtual void OnWindowAddedToRootWindow() = 0;
|
| + virtual void OnWindowRemovingFromRootWindow() = 0;
|
| +
|
| protected:
|
| // Returns the WindowPort associated with a Window.
|
| static WindowPort* Get(Window* window);
|
|
|