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

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

Issue 2669693002: Minimize headless code that refers to aura. (Closed)
Patch Set: Remove GetTopWindowContainingPoint 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
« no previous file with comments | « headless/lib/browser/headless_window_tree_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5cae74e7d48a2cf1e5d37efe3b82211db4444035 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,15 @@ 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));
+}
+
bool HeadlessWindowTreeHost::CanDispatchEvent(const ui::PlatformEvent& event) {
return false;
}
« no previous file with comments | « headless/lib/browser/headless_window_tree_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698