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

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

Issue 2424633002: Revert of Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Created 4 years, 2 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/window_server.cc ('k') | services/ui/ws/window_tree.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 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 SERVICES_UI_WS_WINDOW_TREE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_
6 #define SERVICES_UI_WS_WINDOW_TREE_H_ 6 #define SERVICES_UI_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 const ServerWindow* new_focused_window); 249 const ServerWindow* new_focused_window);
250 void ProcessCaptureChanged(const ServerWindow* new_capture, 250 void ProcessCaptureChanged(const ServerWindow* new_capture,
251 const ServerWindow* old_capture, 251 const ServerWindow* old_capture,
252 bool originated_change); 252 bool originated_change);
253 void ProcessTransientWindowAdded(const ServerWindow* window, 253 void ProcessTransientWindowAdded(const ServerWindow* window,
254 const ServerWindow* transient_window, 254 const ServerWindow* transient_window,
255 bool originated_change); 255 bool originated_change);
256 void ProcessTransientWindowRemoved(const ServerWindow* window, 256 void ProcessTransientWindowRemoved(const ServerWindow* window,
257 const ServerWindow* transient_window, 257 const ServerWindow* transient_window,
258 bool originated_change); 258 bool originated_change);
259 void ProcessWindowSurfaceChanged(ServerWindow* window,
260 const cc::SurfaceId& surface_id,
261 const gfx::Size& frame_size,
262 float device_scale_factor);
263 259
264 // Sends this event to the client if it matches an active pointer watcher. 260 // Sends this event to the client if it matches an active pointer watcher.
265 // |target_window| is the target of the event, and may be null or not known 261 // |target_window| is the target of the event, and may be null or not known
266 // to this tree. 262 // to this tree.
267 void SendToPointerWatcher(const ui::Event& event, 263 void SendToPointerWatcher(const ui::Event& event,
268 ServerWindow* target_window); 264 ServerWindow* target_window);
269 265
270 private: 266 private:
271 friend class test::WindowTreeTestApi; 267 friend class test::WindowTreeTestApi;
272 268
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 Id transport_window_id, 406 Id transport_window_id,
411 const mojo::String& name, 407 const mojo::String& name,
412 mojo::Array<uint8_t> value) override; 408 mojo::Array<uint8_t> value) override;
413 void SetWindowOpacity(uint32_t change_id, 409 void SetWindowOpacity(uint32_t change_id,
414 Id window_id, 410 Id window_id,
415 float opacity) override; 411 float opacity) override;
416 void AttachSurface(Id transport_window_id, 412 void AttachSurface(Id transport_window_id,
417 mojom::SurfaceType type, 413 mojom::SurfaceType type,
418 mojo::InterfaceRequest<mojom::Surface> surface, 414 mojo::InterfaceRequest<mojom::Surface> surface,
419 mojom::SurfaceClientPtr client) override; 415 mojom::SurfaceClientPtr client) override;
420 void OnWindowSurfaceDetached(Id transport_window_id,
421 const cc::SurfaceSequence& sequence) override;
422 void Embed(Id transport_window_id, 416 void Embed(Id transport_window_id,
423 mojom::WindowTreeClientPtr client, 417 mojom::WindowTreeClientPtr client,
424 uint32_t flags, 418 uint32_t flags,
425 const EmbedCallback& callback) override; 419 const EmbedCallback& callback) override;
426 void SetFocus(uint32_t change_id, Id transport_window_id) override; 420 void SetFocus(uint32_t change_id, Id transport_window_id) override;
427 void SetCanFocus(Id transport_window_id, bool can_focus) override; 421 void SetCanFocus(Id transport_window_id, bool can_focus) override;
428 void SetCanAcceptEvents(Id transport_window_id, 422 void SetCanAcceptEvents(Id transport_window_id,
429 bool can_accept_events) override; 423 bool can_accept_events) override;
430 void SetPredefinedCursor(uint32_t change_id, 424 void SetPredefinedCursor(uint32_t change_id,
431 Id transport_window_id, 425 Id transport_window_id,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 waiting_for_top_level_window_info_; 567 waiting_for_top_level_window_info_;
574 bool embedder_intercepts_events_ = false; 568 bool embedder_intercepts_events_ = false;
575 569
576 DISALLOW_COPY_AND_ASSIGN(WindowTree); 570 DISALLOW_COPY_AND_ASSIGN(WindowTree);
577 }; 571 };
578 572
579 } // namespace ws 573 } // namespace ws
580 } // namespace ui 574 } // namespace ui
581 575
582 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 576 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698