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

Side by Side Diff: components/mus/ws/window_manager_state.h

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't crash on empty roots. Created 4 years, 8 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
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 COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // received. 99 // received.
100 // TODO(sky): make this private and use a callback. 100 // TODO(sky): make this private and use a callback.
101 void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result); 101 void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result);
102 102
103 // Returns a mojom::Display for the specified display. WindowManager specific 103 // Returns a mojom::Display for the specified display. WindowManager specific
104 // values are not set. 104 // values are not set.
105 mojom::DisplayPtr ToMojomDisplay() const; 105 mojom::DisplayPtr ToMojomDisplay() const;
106 106
107 void OnWillDestroyTree(WindowTree* tree); 107 void OnWillDestroyTree(WindowTree* tree);
108 108
109 gfx::Point GetCursorLocation() const;
110
109 private: 111 private:
110 class ProcessedEventTarget; 112 class ProcessedEventTarget;
111 friend class Display; 113 friend class Display;
112 friend class test::WindowManagerStateTestApi; 114 friend class test::WindowManagerStateTestApi;
113 115
114 // There are two types of events that may be queued, both occur only when 116 // There are two types of events that may be queued, both occur only when
115 // waiting for an ack from a client. 117 // waiting for an ack from a client.
116 // . We get an event from the PlatformDisplay. This results in |event| being 118 // . We get an event from the PlatformDisplay. This results in |event| being
117 // set, but |processed_target| is null. 119 // set, but |processed_target| is null.
118 // . We get an event from the EventDispatcher. In this case both |event| and 120 // . We get an event from the EventDispatcher. In this case both |event| and
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 190
189 EventDispatcher event_dispatcher_; 191 EventDispatcher event_dispatcher_;
190 192
191 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 193 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
192 }; 194 };
193 195
194 } // namespace ws 196 } // namespace ws
195 } // namespace mus 197 } // namespace mus
196 198
197 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ 199 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698