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

Side by Side Diff: components/native_viewport/public/interfaces/native_viewport.mojom

Issue 1085233004: Moves services implementations out of third_party/mojo_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unnecessary changes Created 5 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
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 module mojo; 5 module mojo;
6 6
7 import "geometry/public/interfaces/geometry.mojom"; 7 import "components/gpu/public/interfaces/context_provider.mojom";
8 import "gpu/public/interfaces/context_provider.mojom"; 8 import "ui/mojo/geometry/geometry.mojom";
9 import "input_events/public/interfaces/input_events.mojom"; 9 import "ui/mojo/events/input_events.mojom";
10 10
11 struct ViewportMetrics { 11 struct ViewportMetrics {
12 Size size; 12 Size size;
13 float device_pixel_ratio = 1.0; 13 float device_pixel_ratio = 1.0;
14 }; 14 };
15 15
16 interface NativeViewport { 16 interface NativeViewport {
17 // TODO(sky): having a create function is awkward. Should there be a factory 17 // TODO(sky): having a create function is awkward. Should there be a factory
18 // to create the NativeViewport that takes the size? 18 // to create the NativeViewport that takes the size?
19 Create(Size size) => (ViewportMetrics metrics); 19 Create(Size size) => (ViewportMetrics metrics);
(...skipping 12 matching lines...) Expand all
32 // method. Call RequestMetrics() to receive updates when the viewport metrics 32 // method. Call RequestMetrics() to receive updates when the viewport metrics
33 // change. The reply will be sent when the viewport metrics are different from 33 // change. The reply will be sent when the viewport metrics are different from
34 // the values last sent, so to receive continuous updates call this method 34 // the values last sent, so to receive continuous updates call this method
35 // again after receiving the callback. 35 // again after receiving the callback.
36 RequestMetrics() => (ViewportMetrics metrics); 36 RequestMetrics() => (ViewportMetrics metrics);
37 }; 37 };
38 38
39 interface NativeViewportEventDispatcher { 39 interface NativeViewportEventDispatcher {
40 OnEvent(Event event) => (); 40 OnEvent(Event event) => ();
41 }; 41 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698