Chromium Code Reviews| 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..487abcb69f15e8400225f1ef81c473a50a36d976 |
| --- /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() {} |
| + |
| + // AshWindowTreeHost: |
| + virtual void ToggleFullScreen() OVERRIDE { NOTIMPLEMENTED(); } |
|
Ben Goodger (Google)
2014/04/09 22:41:49
since you never refer to this type directly, these
oshima
2014/04/09 23:52:15
Done.
|
| + 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; } |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostOzone); |
| +}; |
| + |
| +} // namespace |
| + |
| +AshWindowTreeHost* AshWindowTreeHost::Create(const gfx::Rect& initial_bounds) { |
| + return new AshWindowTreeHostOzone(initial_bounds); |
| +} |
| + |
| +} // namespace ash |