OLD | NEW |
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 |
(...skipping 24 matching lines...) Expand all Loading... |
35 // currently, we do not have such functionality in X. So we just confine | 35 // currently, we do not have such functionality in X. So we just confine |
36 // to the root window. This is ok because this option is currently only | 36 // to the root window. This is ok because this option is currently only |
37 // being used in fullscreen mode, so root_window bounds = window bounds. | 37 // being used in fullscreen mode, so root_window bounds = window bounds. |
38 virtual bool ConfineCursorToRootWindow() = 0; | 38 virtual bool ConfineCursorToRootWindow() = 0; |
39 virtual void UnConfineCursor() = 0; | 39 virtual void UnConfineCursor() = 0; |
40 | 40 |
41 virtual void SetRootWindowTransformer( | 41 virtual void SetRootWindowTransformer( |
42 scoped_ptr<RootWindowTransformer> transformer) = 0; | 42 scoped_ptr<RootWindowTransformer> transformer) = 0; |
43 | 43 |
44 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; | 44 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; |
| 45 |
| 46 // Updates the display IDs associated with this root window. |
| 47 // A root window can be associated with up to 2 display IDs (e.g. in mirror |
| 48 // mode dual monitors case). If the root window is only associated with one |
| 49 // display id, then the other id should be set to |
| 50 // gfx::Display::kInvalidDisplayID. |
| 51 virtual void UpdateDisplayID(int64 id1, int64 id2) {}; |
45 }; | 52 }; |
46 | 53 |
47 } // namespace ash | 54 } // namespace ash |
48 | 55 |
49 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ | 56 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ |
OLD | NEW |