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

Side by Side Diff: mojo/services/native_viewport/interfaces/native_viewport.mojom

Issue 1647953007: Remove DartPackage annotation from NativeViewport and GPU mojoms (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebased Created 4 years, 10 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
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 [DartPackage="mojo_services"]
6 module mojo; 5 module mojo;
7 6
8 import "geometry/interfaces/geometry.mojom"; 7 import "geometry/interfaces/geometry.mojom";
9 import "gpu/interfaces/context_provider.mojom"; 8 import "gpu/interfaces/context_provider.mojom";
10 import "input_events/interfaces/input_events.mojom"; 9 import "native_viewport/interfaces/native_viewport_event_dispatcher.mojom";
11 10
12 struct ViewportMetrics { 11 struct ViewportMetrics {
13 Size size; 12 Size size;
14 float device_pixel_ratio = 1.0; 13 float device_pixel_ratio = 1.0;
15 }; 14 };
16 15
17 struct SurfaceConfiguration { 16 struct SurfaceConfiguration {
18 uint8 red_bits = 8; 17 uint8 red_bits = 8;
19 uint8 green_bits = 8; 18 uint8 green_bits = 8;
20 uint8 blue_bits = 8; 19 uint8 blue_bits = 8;
(...skipping 19 matching lines...) Expand all
40 // this native viewport. 39 // this native viewport.
41 GetContextProvider(ContextProvider& provider); 40 GetContextProvider(ContextProvider& provider);
42 41
43 // The initial viewport metrics will be sent in the reply to the Create 42 // The initial viewport metrics will be sent in the reply to the Create
44 // method. Call RequestMetrics() to receive updates when the viewport metrics 43 // method. Call RequestMetrics() to receive updates when the viewport metrics
45 // change. The reply will be sent when the viewport metrics are different from 44 // change. The reply will be sent when the viewport metrics are different from
46 // the values last sent, so to receive continuous updates call this method 45 // the values last sent, so to receive continuous updates call this method
47 // again after receiving the callback. 46 // again after receiving the callback.
48 RequestMetrics() => (ViewportMetrics metrics); 47 RequestMetrics() => (ViewportMetrics metrics);
49 }; 48 };
50
51 [ServiceName="mojo::NativeViewportEventDispatcher"]
52 interface NativeViewportEventDispatcher {
53 OnEvent(Event event) => ();
54 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698