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

Side by Side Diff: ash/host/ash_remote_window_tree_host_win.h

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/DEPS ('k') | ash/host/ash_remote_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 #ifndef ASH_HOST_REMOTE_WINDOW_TREE_HOST_WIN_H_
6 #define ASH_HOST_REMOTE_WINDOW_TREE_HOST_WIN_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/host/ash_window_tree_host.h"
10 #include "ash/host/transformer_helper.h"
11 #include "ui/aura/remote_window_tree_host_win.h"
12
13 namespace ash {
14
15 class ASH_EXPORT AshRemoteWindowTreeHostWin
16 : public AshWindowTreeHost,
17 public aura::RemoteWindowTreeHostWin {
18 public:
19 // Creates an instance of AshRemoteWindowTreeHostWin
20 // and sets it to RemoteWindowTreeHostWin::SetInstance.
21 static void Init();
22
23 // Returns the instance created in Init() method above.
24 // This also performs an extra check if the instance is same
25 // one that aura::RemoteWindowTreeHostWin::Instance() returns.
26 static AshRemoteWindowTreeHostWin* GetInstance();
27
28 private:
29 AshRemoteWindowTreeHostWin();
30 virtual ~AshRemoteWindowTreeHostWin();
31
32 // AshWindowTreeHost:
33 virtual void ToggleFullScreen() OVERRIDE;
34 virtual bool ConfineCursorToRootWindow() OVERRIDE;
35 virtual void UnConfineCursor() OVERRIDE;
36 virtual void SetRootWindowTransformer(
37 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE;
38 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
39
40 // WindowTreeHostWin:
41 virtual gfx::Transform GetRootTransform() const OVERRIDE;
42 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE;
43 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE;
44 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE;
45
46 TransformerHelper transformer_helper_;
47
48 DISALLOW_COPY_AND_ASSIGN(AshRemoteWindowTreeHostWin);
49 };
50
51 } // namespace ash
52
53 #endif // ASH_HOST_REMOTE_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ash/host/DEPS ('k') | ash/host/ash_remote_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698