Index: ui/aura/window_port.h |
diff --git a/ui/aura/window_port.h b/ui/aura/window_port.h |
index df3da59658480ccb6e46a05c7d63acf8168b41d2..358d6352d0f908d77e01d80049fb8d0b816a750a 100644 |
--- a/ui/aura/window_port.h |
+++ b/ui/aura/window_port.h |
@@ -10,11 +10,16 @@ |
#include <memory> |
#include <string> |
+#include "base/callback.h" |
#include "base/observer_list.h" |
#include "base/strings/string16.h" |
#include "ui/aura/aura_export.h" |
#include "ui/base/class_property.h" |
+namespace cc { |
+class CompositorFrameSink; |
+} |
+ |
namespace gfx { |
class Rect; |
} |
@@ -70,6 +75,13 @@ 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> |
+ OnCreateCompositorFrameSink() = 0; |
Fady Samuel
2017/05/08 15:52:09
CreateCompositorFrameSink.
Peng
2017/05/08 17:44:39
Done.
|
+ |
+ virtual void OnWindowAddedToRootWindow() = 0; |
+ virtual void OnWindowRemovingFromRootWindow() = 0; |
+ |
protected: |
// Returns the WindowPort associated with a Window. |
static WindowPort* Get(Window* window); |