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

Unified Diff: ash/host/ash_window_tree_host.cc

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: ash/host/ash_window_tree_host.cc
diff --git a/ash/host/ash_window_tree_host.cc b/ash/host/ash_window_tree_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4af1622ade34dc703705a45ad377c2ca584bac7a
--- /dev/null
+++ b/ash/host/ash_window_tree_host.cc
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/host/ash_window_tree_host.h"
+
+#include "ash/root_window_controller.h"
+#include "ui/aura/window_tree_host.h"
+
+namespace ash {
+
+// static
+AshWindowTreeHost* AshWindowTreeHost::Get(
+ aura::Window* window) {
+ return internal::GetRootWindowController(window->GetRootWindow())->ash_host();
+}
+
+AshWindowTreeHost::~AshWindowTreeHost() {
+}
+
+} // namesapce ash

Powered by Google App Engine
This is Rietveld 408576698