| OLD | NEW |
| 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 module ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "cc/ipc/frame_sink_id.mojom"; | 7 import "cc/ipc/frame_sink_id.mojom"; |
| 8 import "cc/ipc/local_surface_id.mojom"; | 8 import "cc/ipc/local_surface_id.mojom"; |
| 9 import "cc/ipc/surface_id.mojom"; | 9 import "cc/ipc/surface_id.mojom"; |
| 10 import "cc/ipc/surface_info.mojom"; | 10 import "cc/ipc/surface_info.mojom"; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // change. For example, if connection 1 changes the bounds of a window by | 323 // change. For example, if connection 1 changes the bounds of a window by |
| 324 // calling SetWindowBounds(), connection 1 does not receive | 324 // calling SetWindowBounds(), connection 1 does not receive |
| 325 // OnWindowBoundsChanged(). | 325 // OnWindowBoundsChanged(). |
| 326 interface WindowTreeClient { | 326 interface WindowTreeClient { |
| 327 // Invoked when the client application has been embedded at |root|. | 327 // Invoked when the client application has been embedded at |root|. |
| 328 // See Embed() on WindowTree for more details. |tree| will be a handle back to | 328 // See Embed() on WindowTree for more details. |tree| will be a handle back to |
| 329 // the window manager service, unless the connection is to the root connection | 329 // the window manager service, unless the connection is to the root connection |
| 330 // in which case it will be null. |parent_drawn| is true if roots parent is | 330 // in which case it will be null. |parent_drawn| is true if roots parent is |
| 331 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies | 331 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies |
| 332 // the display this root window is on. |frame_sink_id| uniquely identifies the | 332 // the display this root window is on. |frame_sink_id| uniquely identifies the |
| 333 // client in the display compositor. If the embedded window has a size, | 333 // client in the frame sink manager. If the embedded window has a size, |
| 334 // |local_surface_id| identifies the ID to use to submit CompositorFrames. | 334 // |local_surface_id| identifies the ID to use to submit CompositorFrames. |
| 335 OnEmbed(uint16 connection_id, | 335 OnEmbed(uint16 connection_id, |
| 336 WindowData root, | 336 WindowData root, |
| 337 WindowTree? tree, | 337 WindowTree? tree, |
| 338 int64 display_id, | 338 int64 display_id, |
| 339 uint32 focused_window, | 339 uint32 focused_window, |
| 340 bool parent_drawn, | 340 bool parent_drawn, |
| 341 cc.mojom.FrameSinkId frame_sink_id, | 341 cc.mojom.FrameSinkId frame_sink_id, |
| 342 cc.mojom.LocalSurfaceId? local_surface_id); | 342 cc.mojom.LocalSurfaceId? local_surface_id); |
| 343 | 343 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 // See description of WindowManager for details. | 532 // See description of WindowManager for details. |
| 533 GetWindowManager(associated WindowManager& internal); | 533 GetWindowManager(associated WindowManager& internal); |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 // Mus provides this interface as a way for clients to connect and obtain a | 536 // Mus provides this interface as a way for clients to connect and obtain a |
| 537 // WindowTree handle with a supplied WindowTreeClient handle. The | 537 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 538 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 538 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 539 interface WindowTreeFactory { | 539 interface WindowTreeFactory { |
| 540 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 540 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 541 }; | 541 }; |
| OLD | NEW |