Index: headless/lib/browser/headless_window_tree_host.cc |
diff --git a/headless/lib/browser/headless_window_tree_host.cc b/headless/lib/browser/headless_window_tree_host.cc |
index 96cec1a96e69b017d71a78010989d9fc01685a75..d8e850a530c487e78d03fc590cbd6e862dccc64b 100644 |
--- a/headless/lib/browser/headless_window_tree_host.cc |
+++ b/headless/lib/browser/headless_window_tree_host.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "headless/lib/browser/headless_window_tree_host.h" |
+#include "ui/aura/window.h" |
#include "ui/gfx/icc_profile.h" |
@@ -15,10 +16,20 @@ HeadlessWindowTreeHost::HeadlessWindowTreeHost(const gfx::Rect& bounds) |
} |
HeadlessWindowTreeHost::~HeadlessWindowTreeHost() { |
+ window_parenting_client_.reset(); |
DestroyCompositor(); |
DestroyDispatcher(); |
} |
+void HeadlessWindowTreeHost::SetParentWindow(gfx::NativeWindow window) { |
+ window_parenting_client_.reset(new HeadlessWindowParentingClient(window)); |
+} |
+ |
+gfx::NativeWindow HeadlessWindowTreeHost::GetTopWindowContainingPoint( |
+ const gfx::Point& point) { |
+ return this->window()->GetTopWindowContainingPoint(point); |
+} |
+ |
bool HeadlessWindowTreeHost::CanDispatchEvent(const ui::PlatformEvent& event) { |
return false; |
} |