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

Side by Side 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: rebased 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 // AshWindowTreeHost:
23 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.
24 virtual bool ConfineCursorToRootWindow() OVERRIDE { return false; }
25 virtual void UnConfineCursor() OVERRIDE { NOTIMPLEMENTED(); }
26 virtual void SetRootWindowTransformer(
27 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE {}
28 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE { return this; }
29
30 private:
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698