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

Side by Side Diff: services/ui/ws/user_display_manager.h

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_traits
Patch Set: Fixes. Created 4 years, 5 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
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/user_display_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/user_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698