| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| |
| |
| goog.provide('viz.mojom.LayeredWindowUpdater'); |
| goog.provide('viz.mojom.LayeredWindowUpdaterImpl'); |
| goog.provide('viz.mojom.LayeredWindowUpdaterPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| viz.mojom.LayeredWindowUpdater; |
| |
| /** @interface */ |
| viz.mojom.LayeredWindowUpdaterImpl = class { |
| /** |
| * @param { !gfx.mojom.Size } pixelSize |
| * @param { !mojoBase.mojom.UnsafeSharedMemoryRegion } region |
| */ |
| onAllocatedSharedMemory(pixelSize, region) {} |
| /** |
| * @return {Promise} |
| */ |
| draw() {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { viz.mojom.LayeredWindowUpdaterImpl } |
| */ |
| viz.mojom.LayeredWindowUpdaterPtr = class { |
| /** |
| * @param { !gfx.mojom.Size } pixelSize |
| * @param { !mojoBase.mojom.UnsafeSharedMemoryRegion } region |
| */ |
| onAllocatedSharedMemory(pixelSize, region) {} |
| /** |
| * @return {Promise} |
| */ |
| draw() {} |
| }; |
| |
| goog.provide('viz.mojom.LayeredWindowUpdater_OnAllocatedSharedMemory_Params'); |
| |
| viz.mojom.LayeredWindowUpdater_OnAllocatedSharedMemory_Params = class { |
| constructor() { |
| /** @type { !gfx.mojom.Size } */ |
| this.pixelSize; |
| /** @type { !mojoBase.mojom.UnsafeSharedMemoryRegion } */ |
| this.region; |
| } |
| }; |
| |
| goog.provide('viz.mojom.LayeredWindowUpdater_Draw_Params'); |
| |
| viz.mojom.LayeredWindowUpdater_Draw_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('viz.mojom.LayeredWindowUpdater_Draw_ResponseParams'); |
| |
| viz.mojom.LayeredWindowUpdater_Draw_ResponseParams = class { |
| constructor() { |
| } |
| }; |