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

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

Issue 2829733002: mus: Changes SetDisplayRoot() to create actual display (Closed)
Patch Set: unnecessary get Created 3 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
« no previous file with comments | « services/ui/ws/window_server_delegate.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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 // Calls OnChangeCompleted() on the client. 377 // Calls OnChangeCompleted() on the client.
378 void NotifyChangeCompleted(uint32_t change_id, 378 void NotifyChangeCompleted(uint32_t change_id,
379 mojom::WindowManagerErrorCode error_code); 379 mojom::WindowManagerErrorCode error_code);
380 380
381 // Callback for when WmMoveDragImage completes. This sends off the next 381 // Callback for when WmMoveDragImage completes. This sends off the next
382 // queued move under the image if the mouse had further moves while we were 382 // queued move under the image if the mouse had further moves while we were
383 // waiting for the last move to be acknowledged. 383 // waiting for the last move to be acknowledged.
384 void OnWmMoveDragImageAck(); 384 void OnWmMoveDragImageAck();
385 385
386 // Called from SetDisplayRoot(), see mojom for details. 386 // Called from SetDisplayRoot(), see mojom for details. Returns the root
387 bool ProcessSetDisplayRoot(int64_t display_id, 387 // of the display if successful, otherwise null.
388 const ClientWindowId& client_window_id); 388 ServerWindow* ProcessSetDisplayRoot(
389 const display::Display& display_to_create,
390 const mojom::WmViewportMetrics& transport_viewport_metrics,
391 bool is_primary_display,
392 const ClientWindowId& client_window_id);
389 393
390 // WindowTree: 394 // WindowTree:
391 void NewWindow(uint32_t change_id, 395 void NewWindow(uint32_t change_id,
392 Id transport_window_id, 396 Id transport_window_id,
393 const base::Optional< 397 const base::Optional<
394 std::unordered_map<std::string, std::vector<uint8_t>>>& 398 std::unordered_map<std::string, std::vector<uint8_t>>>&
395 transport_properties) override; 399 transport_properties) override;
396 void NewTopLevelWindow( 400 void NewTopLevelWindow(
397 uint32_t change_id, 401 uint32_t change_id,
398 Id transport_window_id, 402 Id transport_window_id,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 void CancelWindowMove(Id window_id) override; 493 void CancelWindowMove(Id window_id) override;
490 494
491 // mojom::WindowManagerClient: 495 // mojom::WindowManagerClient:
492 void AddAccelerators(std::vector<mojom::WmAcceleratorPtr> accelerators, 496 void AddAccelerators(std::vector<mojom::WmAcceleratorPtr> accelerators,
493 const AddAcceleratorsCallback& callback) override; 497 const AddAcceleratorsCallback& callback) override;
494 void RemoveAccelerator(uint32_t id) override; 498 void RemoveAccelerator(uint32_t id) override;
495 void AddActivationParent(Id transport_window_id) override; 499 void AddActivationParent(Id transport_window_id) override;
496 void RemoveActivationParent(Id transport_window_id) override; 500 void RemoveActivationParent(Id transport_window_id) override;
497 void ActivateNextWindow() override; 501 void ActivateNextWindow() override;
498 void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override; 502 void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override;
499 void SetDisplayRoot(int64_t display_id, 503 void SetDisplayRoot(const display::Display& display,
504 mojom::WmViewportMetricsPtr viewport_metrics,
505 bool is_primary_display,
500 Id window_id, 506 Id window_id,
501 const SetDisplayRootCallback& callback) override; 507 const SetDisplayRootCallback& callback) override;
502 void WmResponse(uint32_t change_id, bool response) override; 508 void WmResponse(uint32_t change_id, bool response) override;
503 void WmSetBoundsResponse(uint32_t change_id) override; 509 void WmSetBoundsResponse(uint32_t change_id) override;
504 void WmRequestClose(Id transport_window_id) override; 510 void WmRequestClose(Id transport_window_id) override;
505 void WmSetFrameDecorationValues( 511 void WmSetFrameDecorationValues(
506 mojom::FrameDecorationValuesPtr values) override; 512 mojom::FrameDecorationValuesPtr values) override;
507 void WmSetNonClientCursor(uint32_t window_id, 513 void WmSetNonClientCursor(uint32_t window_id,
508 mojom::CursorType cursor_id) override; 514 mojom::CursorType cursor_id) override;
509 void OnWmCreatedTopLevelWindow(uint32_t change_id, 515 void OnWmCreatedTopLevelWindow(uint32_t change_id,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 // a image move. All weak ptrs are invalidated when a drag is completed. 629 // a image move. All weak ptrs are invalidated when a drag is completed.
624 base::WeakPtrFactory<WindowTree> drag_weak_factory_; 630 base::WeakPtrFactory<WindowTree> drag_weak_factory_;
625 631
626 DISALLOW_COPY_AND_ASSIGN(WindowTree); 632 DISALLOW_COPY_AND_ASSIGN(WindowTree);
627 }; 633 };
628 634
629 } // namespace ws 635 } // namespace ws
630 } // namespace ui 636 } // namespace ui
631 637
632 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 638 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server_delegate.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698