OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/host/ash_window_tree_host.h" |
| 6 |
| 7 #include "ash/host/root_window_transformer.h" |
| 8 #include "base/command_line.h" |
| 9 #include "ui/aura/window_tree_host_ozone.h" |
| 10 #include "ui/gfx/geometry/insets.h" |
| 11 |
| 12 namespace ash { |
| 13 namespace { |
| 14 |
| 15 class AshWindowTreeHostOzone : public AshWindowTreeHost, |
| 16 public aura::WindowTreeHostOzone { |
| 17 public: |
| 18 explicit AshWindowTreeHostOzone(const gfx::Rect& initial_bounds) |
| 19 : aura::WindowTreeHostOzone(initial_bounds) {} |
| 20 virtual ~AshWindowTreeHostOzone() {} |
| 21 |
| 22 private: |
| 23 // AshWindowTreeHost: |
| 24 virtual void ToggleFullScreen() OVERRIDE { NOTIMPLEMENTED(); } |
| 25 virtual bool ConfineCursorToRootWindow() OVERRIDE { return false; } |
| 26 virtual void UnConfineCursor() OVERRIDE { NOTIMPLEMENTED(); } |
| 27 virtual void SetRootWindowTransformer( |
| 28 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE {} |
| 29 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE { return this; } |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostOzone); |
| 32 }; |
| 33 |
| 34 } // namespace |
| 35 |
| 36 AshWindowTreeHost* AshWindowTreeHost::Create(const gfx::Rect& initial_bounds) { |
| 37 return new AshWindowTreeHostOzone(initial_bounds); |
| 38 } |
| 39 |
| 40 } // namespace ash |
OLD | NEW |