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

Unified Diff: headless/lib/browser/headless_window_tree_host.cc

Issue 2669693002: Minimize headless code that refers to aura. (Closed)
Patch Set: remove one window_tree_host reference Created 3 years, 10 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698