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

Side by Side Diff: ash/host/ash_window_tree_host.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: Created 6 years, 9 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 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_H_
Ben Goodger (Google) 2014/03/26 05:11:08 it would be good to have a DEPS file in this dir t
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_
7
8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h"
10
11 namespace aura {
12 class Window;
13 class WindowTreeHost;
14 }
15 namespace gfx {
16 class Insets;
17 class Rect;
18 }
19
20 namespace ash {
21 class RootWindowTransformer;
22
23 class ASH_EXPORT AshWindowTreeHost {
24 public:
25 static AshWindowTreeHost* Create(const gfx::Rect& initial_bounds);
26 static AshWindowTreeHost* Get(aura::Window* window);
27
28 virtual ~AshWindowTreeHost();
29
30 // Sets/Gets the insets that specifies the effective root window area
31 // in the host window.
32 virtual gfx::Insets GetInsets() const = 0;
33 virtual void SetInsets(const gfx::Insets& insets) = 0;
34
35 // Clips the cursor to the bounds of the root window until UnConfineCursor().
36 // We would like to be able to confine the cursor to that window. However,
37 // currently, we do not have such functionality in X. So we just confine
38 // to the root window. This is ok because this option is currently only
39 // being used in fullscreen mode, so root_window bounds = window bounds.
40 virtual bool ConfineCursorToRootWindow() = 0;
41 virtual void UnConfineCursor() = 0;
42
43 // Toggles the host's full screen state.
44 virtual void ToggleFullScreen() = 0;
45
46 virtual void SetRootWindowTransformer(
47 scoped_ptr<RootWindowTransformer> transformer) = 0;
48
49 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0;
50 };
51
52 } // namespace ash
53
54 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_
55
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698