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

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

Issue 1677513002: mus Window Server: implement event capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 mojom::OrderDirection direction, 161 mojom::OrderDirection direction,
162 bool originated_change); 162 bool originated_change);
163 void ProcessWindowDeleted(const ServerWindow* window, bool originated_change); 163 void ProcessWindowDeleted(const ServerWindow* window, bool originated_change);
164 void ProcessWillChangeWindowVisibility(const ServerWindow* window, 164 void ProcessWillChangeWindowVisibility(const ServerWindow* window,
165 bool originated_change); 165 bool originated_change);
166 void ProcessCursorChanged(const ServerWindow* window, 166 void ProcessCursorChanged(const ServerWindow* window,
167 int32_t cursor_id, 167 int32_t cursor_id,
168 bool originated_change); 168 bool originated_change);
169 void ProcessFocusChanged(const ServerWindow* old_focused_window, 169 void ProcessFocusChanged(const ServerWindow* old_focused_window,
170 const ServerWindow* new_focused_window); 170 const ServerWindow* new_focused_window);
171 void ProcessLostCapture(const ServerWindow* old_lost_capture,
172 bool originated_change);
171 void ProcessTransientWindowAdded(const ServerWindow* window, 173 void ProcessTransientWindowAdded(const ServerWindow* window,
172 const ServerWindow* transient_window, 174 const ServerWindow* transient_window,
173 bool originated_change); 175 bool originated_change);
174 void ProcessTransientWindowRemoved(const ServerWindow* window, 176 void ProcessTransientWindowRemoved(const ServerWindow* window,
175 const ServerWindow* transient_window, 177 const ServerWindow* transient_window,
176 bool originated_change); 178 bool originated_change);
177 179
178 private: 180 private:
179 friend class WindowTreeTest; 181 friend class WindowTreeTest;
180 182
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 void RemoveTransientWindowFromParent(uint32_t change_id, 290 void RemoveTransientWindowFromParent(uint32_t change_id,
289 Id transient_window_id) override; 291 Id transient_window_id) override;
290 void ReorderWindow(uint32_t change_Id, 292 void ReorderWindow(uint32_t change_Id,
291 Id window_id, 293 Id window_id,
292 Id relative_window_id, 294 Id relative_window_id,
293 mojom::OrderDirection direction) override; 295 mojom::OrderDirection direction) override;
294 void GetWindowTree( 296 void GetWindowTree(
295 Id window_id, 297 Id window_id,
296 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) 298 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback)
297 override; 299 override;
300 void SetCapture(uint32_t change_id, Id window_id) override;
301 void ReleaseCapture(uint32_t change_id, Id window_id) override;
298 void SetWindowBounds(uint32_t change_id, 302 void SetWindowBounds(uint32_t change_id,
299 Id window_id, 303 Id window_id,
300 mojo::RectPtr bounds) override; 304 mojo::RectPtr bounds) override;
301 void SetWindowVisibility(uint32_t change_id, 305 void SetWindowVisibility(uint32_t change_id,
302 Id window_id, 306 Id window_id,
303 bool visible) override; 307 bool visible) override;
304 void SetWindowProperty(uint32_t change_id, 308 void SetWindowProperty(uint32_t change_id,
305 Id transport_window_id, 309 Id transport_window_id,
306 const mojo::String& name, 310 const mojo::String& name,
307 mojo::Array<uint8_t> value) override; 311 mojo::Array<uint8_t> value) override;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 390
387 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 391 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
388 392
389 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); 393 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl);
390 }; 394 };
391 395
392 } // namespace ws 396 } // namespace ws
393 } // namespace mus 397 } // namespace mus
394 398
395 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ 399 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698