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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // window(s). 207 // window(s).
208 void ClientJankinessChanged(WindowTree* tree); 208 void ClientJankinessChanged(WindowTree* tree);
209 209
210 // The following methods are invoked after the corresponding change has been 210 // The following methods are invoked after the corresponding change has been
211 // processed. They do the appropriate bookkeeping and update the client as 211 // processed. They do the appropriate bookkeeping and update the client as
212 // necessary. 212 // necessary.
213 void ProcessWindowBoundsChanged(const ServerWindow* window, 213 void ProcessWindowBoundsChanged(const ServerWindow* window,
214 const gfx::Rect& old_bounds, 214 const gfx::Rect& old_bounds,
215 const gfx::Rect& new_bounds, 215 const gfx::Rect& new_bounds,
216 bool originated_change); 216 bool originated_change);
217
218 void ProcessWindowSurfaceCreated(const ServerWindow* window,
219 const gfx::Size& size,
220 float device_scale_factor,
221 const cc::SurfaceId& surface_id,
222 const cc::SurfaceSequence& surface_sequence);
223
217 void ProcessClientAreaChanged( 224 void ProcessClientAreaChanged(
218 const ServerWindow* window, 225 const ServerWindow* window,
219 const gfx::Insets& new_client_area, 226 const gfx::Insets& new_client_area,
220 const std::vector<gfx::Rect>& new_additional_client_areas, 227 const std::vector<gfx::Rect>& new_additional_client_areas,
221 bool originated_change); 228 bool originated_change);
222 void ProcessWillChangeWindowHierarchy(const ServerWindow* window, 229 void ProcessWillChangeWindowHierarchy(const ServerWindow* window,
223 const ServerWindow* new_parent, 230 const ServerWindow* new_parent,
224 const ServerWindow* old_parent, 231 const ServerWindow* old_parent,
225 bool originated_change); 232 bool originated_change);
226 void ProcessWindowPropertyChanged(const ServerWindow* window, 233 void ProcessWindowPropertyChanged(const ServerWindow* window,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 Id transport_window_id, 413 Id transport_window_id,
407 const mojo::String& name, 414 const mojo::String& name,
408 mojo::Array<uint8_t> value) override; 415 mojo::Array<uint8_t> value) override;
409 void SetWindowOpacity(uint32_t change_id, 416 void SetWindowOpacity(uint32_t change_id,
410 Id window_id, 417 Id window_id,
411 float opacity) override; 418 float opacity) override;
412 void AttachSurface(Id transport_window_id, 419 void AttachSurface(Id transport_window_id,
413 mojom::SurfaceType type, 420 mojom::SurfaceType type,
414 mojo::InterfaceRequest<mojom::Surface> surface, 421 mojo::InterfaceRequest<mojom::Surface> surface,
415 mojom::SurfaceClientPtr client) override; 422 mojom::SurfaceClientPtr client) override;
423 void SatisfySurfaceSequence(Id transport_window_id,
424 const cc::SurfaceSequence& sequence) override;
416 void Embed(Id transport_window_id, 425 void Embed(Id transport_window_id,
417 mojom::WindowTreeClientPtr client, 426 mojom::WindowTreeClientPtr client,
418 uint32_t flags, 427 uint32_t flags,
419 const EmbedCallback& callback) override; 428 const EmbedCallback& callback) override;
420 void SetFocus(uint32_t change_id, Id transport_window_id) override; 429 void SetFocus(uint32_t change_id, Id transport_window_id) override;
421 void SetCanFocus(Id transport_window_id, bool can_focus) override; 430 void SetCanFocus(Id transport_window_id, bool can_focus) override;
422 void SetCanAcceptEvents(Id transport_window_id, 431 void SetCanAcceptEvents(Id transport_window_id,
423 bool can_accept_events) override; 432 bool can_accept_events) override;
424 void SetPredefinedCursor(uint32_t change_id, 433 void SetPredefinedCursor(uint32_t change_id,
425 Id transport_window_id, 434 Id transport_window_id,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 waiting_for_top_level_window_info_; 577 waiting_for_top_level_window_info_;
569 bool embedder_intercepts_events_ = false; 578 bool embedder_intercepts_events_ = false;
570 579
571 DISALLOW_COPY_AND_ASSIGN(WindowTree); 580 DISALLOW_COPY_AND_ASSIGN(WindowTree);
572 }; 581 };
573 582
574 } // namespace ws 583 } // namespace ws
575 } // namespace ui 584 } // namespace ui
576 585
577 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 586 #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