Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2095)

Unified Diff: ui/aura/window_port.h

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | ui/aura/window_port_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698