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

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

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Don't follow null surface_info 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);
259 263
260 // Sends this event to the client if it matches an active pointer watcher. 264 // Sends this event to the client if it matches an active pointer watcher.
261 // |target_window| is the target of the event, and may be null or not known 265 // |target_window| is the target of the event, and may be null or not known
262 // to this tree. 266 // to this tree.
263 void SendToPointerWatcher(const ui::Event& event, 267 void SendToPointerWatcher(const ui::Event& event,
264 ServerWindow* target_window); 268 ServerWindow* target_window);
265 269
266 private: 270 private:
267 friend class test::WindowTreeTestApi; 271 friend class test::WindowTreeTestApi;
268 272
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 Id transport_window_id, 410 Id transport_window_id,
407 const mojo::String& name, 411 const mojo::String& name,
408 mojo::Array<uint8_t> value) override; 412 mojo::Array<uint8_t> value) override;
409 void SetWindowOpacity(uint32_t change_id, 413 void SetWindowOpacity(uint32_t change_id,
410 Id window_id, 414 Id window_id,
411 float opacity) override; 415 float opacity) override;
412 void AttachSurface(Id transport_window_id, 416 void AttachSurface(Id transport_window_id,
413 mojom::SurfaceType type, 417 mojom::SurfaceType type,
414 mojo::InterfaceRequest<mojom::Surface> surface, 418 mojo::InterfaceRequest<mojom::Surface> surface,
415 mojom::SurfaceClientPtr client) override; 419 mojom::SurfaceClientPtr client) override;
420 void OnWindowSurfaceDetached(Id transport_window_id,
421 const cc::SurfaceSequence& sequence) override;
416 void Embed(Id transport_window_id, 422 void Embed(Id transport_window_id,
417 mojom::WindowTreeClientPtr client, 423 mojom::WindowTreeClientPtr client,
418 uint32_t flags, 424 uint32_t flags,
419 const EmbedCallback& callback) override; 425 const EmbedCallback& callback) override;
420 void SetFocus(uint32_t change_id, Id transport_window_id) override; 426 void SetFocus(uint32_t change_id, Id transport_window_id) override;
421 void SetCanFocus(Id transport_window_id, bool can_focus) override; 427 void SetCanFocus(Id transport_window_id, bool can_focus) override;
422 void SetCanAcceptEvents(Id transport_window_id, 428 void SetCanAcceptEvents(Id transport_window_id,
423 bool can_accept_events) override; 429 bool can_accept_events) override;
424 void SetPredefinedCursor(uint32_t change_id, 430 void SetPredefinedCursor(uint32_t change_id,
425 Id transport_window_id, 431 Id transport_window_id,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 waiting_for_top_level_window_info_; 573 waiting_for_top_level_window_info_;
568 bool embedder_intercepts_events_ = false; 574 bool embedder_intercepts_events_ = false;
569 575
570 DISALLOW_COPY_AND_ASSIGN(WindowTree); 576 DISALLOW_COPY_AND_ASSIGN(WindowTree);
571 }; 577 };
572 578
573 } // namespace ws 579 } // namespace ws
574 } // namespace ui 580 } // namespace ui
575 581
576 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 582 #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