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

Unified Diff: mojo/services/native_viewport/public/interfaces/native_viewport.mojom

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/native_viewport/public/interfaces/native_viewport.mojom
diff --git a/mojo/services/native_viewport/public/interfaces/native_viewport.mojom b/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
deleted file mode 100644
index 40036c65eb722d4315d29bbfab6901522977a871..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 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.
-
-[DartPackage="mojo_services"]
-module mojo;
-
-import "geometry/public/interfaces/geometry.mojom";
-import "gpu/public/interfaces/context_provider.mojom";
-import "input_events/public/interfaces/input_events.mojom";
-
-struct ViewportMetrics {
- Size size;
- float device_pixel_ratio = 1.0;
-};
-
-struct SurfaceConfiguration {
- uint8 red_bits = 8;
- uint8 green_bits = 8;
- uint8 blue_bits = 8;
- uint8 alpha_bits = 8;
- uint8 depth_bits;
- uint8 stencil_bits;
-};
-
-interface NativeViewport {
- // TODO(sky): having a create function is awkward. Should there be a factory
- // to create the NativeViewport that takes the size?
- // When the viewport is created it is initially shown.
- Create(Size size, SurfaceConfiguration? requested_configuration) => (ViewportMetrics metrics);
-
- Show();
- Hide();
- Close();
- SetSize(Size size);
- SetEventDispatcher(NativeViewportEventDispatcher dispatcher);
-
- // Requests a ContextProvider capable of producing contexts that draw to
- // this native viewport.
- GetContextProvider(ContextProvider& provider);
-
- // The initial viewport metrics will be sent in the reply to the Create
- // method. Call RequestMetrics() to receive updates when the viewport metrics
- // change. The reply will be sent when the viewport metrics are different from
- // the values last sent, so to receive continuous updates call this method
- // again after receiving the callback.
- RequestMetrics() => (ViewportMetrics metrics);
-};
-
-interface NativeViewportEventDispatcher {
- OnEvent(Event event) => ();
-};
« no previous file with comments | « mojo/services/native_viewport/public/interfaces/BUILD.gn ('k') | mojo/services/ozone_drm_gpu/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698