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

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

Issue 277753002: Makes construction of (ash)RemoteWindowTreeHostWin explicit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_H_ 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_ 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 class WindowTreeHost; 13 class WindowTreeHost;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Insets; 17 class Insets;
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 struct AshWindowTreeHostInitParams;
22 class RootWindowTransformer; 23 class RootWindowTransformer;
23 24
24 class ASH_EXPORT AshWindowTreeHost { 25 class ASH_EXPORT AshWindowTreeHost {
25 public: 26 public:
27 virtual ~AshWindowTreeHost() {}
28
26 // Creates a new AshWindowTreeHost. The caller owns the returned value. 29 // Creates a new AshWindowTreeHost. The caller owns the returned value.
27 static AshWindowTreeHost* Create(const gfx::Rect& initial_bounds); 30 static AshWindowTreeHost* Create(
28 31 const AshWindowTreeHostInitParams& init_params);
29 virtual ~AshWindowTreeHost() {}
30 32
31 // Toggles the host's full screen state. 33 // Toggles the host's full screen state.
32 virtual void ToggleFullScreen() = 0; 34 virtual void ToggleFullScreen() = 0;
33 35
34 // Clips the cursor to the bounds of the root window until UnConfineCursor(). 36 // Clips the cursor to the bounds of the root window until UnConfineCursor().
35 // We would like to be able to confine the cursor to that window. However, 37 // We would like to be able to confine the cursor to that window. However,
36 // currently, we do not have such functionality in X. So we just confine 38 // currently, we do not have such functionality in X. So we just confine
37 // to the root window. This is ok because this option is currently only 39 // to the root window. This is ok because this option is currently only
38 // being used in fullscreen mode, so root_window bounds = window bounds. 40 // being used in fullscreen mode, so root_window bounds = window bounds.
39 virtual bool ConfineCursorToRootWindow() = 0; 41 virtual bool ConfineCursorToRootWindow() = 0;
(...skipping 10 matching lines...) Expand all
50 // A root window can be associated with up to 2 display IDs (e.g. in mirror 52 // A root window can be associated with up to 2 display IDs (e.g. in mirror
51 // mode dual monitors case). If the root window is only associated with one 53 // mode dual monitors case). If the root window is only associated with one
52 // display id, then the other id should be set to 54 // display id, then the other id should be set to
53 // gfx::Display::kInvalidDisplayID. 55 // gfx::Display::kInvalidDisplayID.
54 virtual void UpdateDisplayID(int64 id1, int64 id2) {}; 56 virtual void UpdateDisplayID(int64 id1, int64 id2) {};
55 }; 57 };
56 58
57 } // namespace ash 59 } // namespace ash
58 60
59 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ 61 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ash/host/ash_remote_window_tree_host_win.cc ('k') | ash/host/ash_window_tree_host_init_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698