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

Unified Diff: ash/host/ash_window_tree_host_ozone.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: rebase Created 6 years, 8 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 | « ash/host/ash_window_tree_host.h ('k') | ash/host/ash_window_tree_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_ozone.cc
diff --git a/ash/host/ash_window_tree_host_ozone.cc b/ash/host/ash_window_tree_host_ozone.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cfe8b25d336d93499e67c4bfb9bf9c27e970a091
--- /dev/null
+++ b/ash/host/ash_window_tree_host_ozone.cc
@@ -0,0 +1,40 @@
+// 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/host/root_window_transformer.h"
+#include "base/command_line.h"
+#include "ui/aura/window_tree_host_ozone.h"
+#include "ui/gfx/geometry/insets.h"
+
+namespace ash {
+namespace {
+
+class AshWindowTreeHostOzone : public AshWindowTreeHost,
+ public aura::WindowTreeHostOzone {
+ public:
+ explicit AshWindowTreeHostOzone(const gfx::Rect& initial_bounds)
+ : aura::WindowTreeHostOzone(initial_bounds) {}
+ virtual ~AshWindowTreeHostOzone() {}
+
+ private:
+ // AshWindowTreeHost:
+ virtual void ToggleFullScreen() OVERRIDE { NOTIMPLEMENTED(); }
+ virtual bool ConfineCursorToRootWindow() OVERRIDE { return false; }
+ virtual void UnConfineCursor() OVERRIDE { NOTIMPLEMENTED(); }
+ virtual void SetRootWindowTransformer(
+ scoped_ptr<RootWindowTransformer> transformer) OVERRIDE {}
+ virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE { return this; }
+
+ DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostOzone);
+};
+
+} // namespace
+
+AshWindowTreeHost* AshWindowTreeHost::Create(const gfx::Rect& initial_bounds) {
+ return new AshWindowTreeHostOzone(initial_bounds);
+}
+
+} // namespace ash
« no previous file with comments | « ash/host/ash_window_tree_host.h ('k') | ash/host/ash_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698