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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual bool ConfineCursorToRootWindow() = 0; | 45 virtual bool ConfineCursorToRootWindow() = 0; |
46 virtual void UnConfineCursor() = 0; | 46 virtual void UnConfineCursor() = 0; |
47 | 47 |
48 virtual void SetRootWindowTransformer( | 48 virtual void SetRootWindowTransformer( |
49 scoped_ptr<RootWindowTransformer> transformer) = 0; | 49 scoped_ptr<RootWindowTransformer> transformer) = 0; |
50 | 50 |
51 virtual gfx::Insets GetHostInsets() const = 0; | 51 virtual gfx::Insets GetHostInsets() const = 0; |
52 | 52 |
53 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; | 53 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; |
54 | 54 |
55 // Updates the display IDs associated with this root window. | |
56 // A root window can be associated with up to 2 display IDs (e.g. in mirror | |
57 // mode dual monitors case). If the root window is only associated with one | |
58 // display id, then the other id should be set to | |
59 // gfx::Display::kInvalidDisplayID. | |
60 virtual void UpdateDisplayID(int64 id1, int64 id2) {} | |
61 | |
62 // Stop listening for events in preparation for shutdown. | 55 // Stop listening for events in preparation for shutdown. |
63 virtual void PrepareForShutdown() {} | 56 virtual void PrepareForShutdown() {} |
64 | 57 |
65 protected: | 58 protected: |
66 // Translates the native mouse location into screen coordinates. | 59 // Translates the native mouse location into screen coordinates. |
67 void TranslateLocatedEvent(ui::LocatedEvent* event); | 60 void TranslateLocatedEvent(ui::LocatedEvent* event); |
68 }; | 61 }; |
69 | 62 |
70 } // namespace ash | 63 } // namespace ash |
71 | 64 |
72 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ | 65 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ |
OLD | NEW |