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

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: 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
OLDNEW
« 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