OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_WS_USER_DISPLAY_MANAGER_H_ | 5 #ifndef SERVICES_UI_WS_USER_DISPLAY_MANAGER_H_ |
6 #define SERVICES_UI_WS_USER_DISPLAY_MANAGER_H_ | 6 #define SERVICES_UI_WS_USER_DISPLAY_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // mouse cursor position. Each call returns a new handle. | 57 // mouse cursor position. Each call returns a new handle. |
58 mojo::ScopedSharedBufferHandle GetCursorLocationMemory(); | 58 mojo::ScopedSharedBufferHandle GetCursorLocationMemory(); |
59 | 59 |
60 private: | 60 private: |
61 friend class test::UserDisplayManagerTestApi; | 61 friend class test::UserDisplayManagerTestApi; |
62 | 62 |
63 // Called when a new observer is added. If frame decorations are available | 63 // Called when a new observer is added. If frame decorations are available |
64 // notifies the observer immediately. | 64 // notifies the observer immediately. |
65 void OnObserverAdded(mojom::DisplayManagerObserver* observer); | 65 void OnObserverAdded(mojom::DisplayManagerObserver* observer); |
66 | 66 |
67 mojo::Array<mojom::DisplayPtr> GetAllDisplays(); | 67 mojo::Array<mojom::WsDisplayPtr> GetAllDisplays(); |
68 | 68 |
69 // Calls OnDisplays() on |observer|. | 69 // Calls OnDisplays() on |observer|. |
70 void CallOnDisplays(mojom::DisplayManagerObserver* observer); | 70 void CallOnDisplays(mojom::DisplayManagerObserver* observer); |
71 | 71 |
72 // Overriden from mojom::DisplayManager: | 72 // Overriden from mojom::DisplayManager: |
73 void AddObserver(mojom::DisplayManagerObserverPtr observer) override; | 73 void AddObserver(mojom::DisplayManagerObserverPtr observer) override; |
74 | 74 |
75 base::subtle::Atomic32* cursor_location_memory() { | 75 base::subtle::Atomic32* cursor_location_memory() { |
76 return reinterpret_cast<base::subtle::Atomic32*>( | 76 return reinterpret_cast<base::subtle::Atomic32*>( |
77 cursor_location_mapping_.get()); | 77 cursor_location_mapping_.get()); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // mojo connection, this data must be read atomically.) | 109 // mojo connection, this data must be read atomically.) |
110 mojo::ScopedSharedBufferMapping cursor_location_mapping_; | 110 mojo::ScopedSharedBufferMapping cursor_location_mapping_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(UserDisplayManager); | 112 DISALLOW_COPY_AND_ASSIGN(UserDisplayManager); |
113 }; | 113 }; |
114 | 114 |
115 } // namespace ws | 115 } // namespace ws |
116 } // namespace ui | 116 } // namespace ui |
117 | 117 |
118 #endif // SERVICES_UI_WS_USER_DISPLAY_MANAGER_H_ | 118 #endif // SERVICES_UI_WS_USER_DISPLAY_MANAGER_H_ |
OLD | NEW |