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

Side by Side Diff: sky/services/engine/sky_engine.mojom

Issue 1230073002: Teach SkyShell.apk to stop posting frames when not visible (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 sky; 5 module sky;
6 6
7 import "sky/services/engine/input_event.mojom"; 7 import "sky/services/engine/input_event.mojom";
8 8
9 struct ViewportMetrics { 9 struct ViewportMetrics {
10 int32 physical_width; 10 int32 physical_width;
11 int32 physical_height; 11 int32 physical_height;
12 float device_pixel_ratio = 1.0; 12 float device_pixel_ratio = 1.0;
13 double padding_top; 13 double padding_top;
14 double padding_right; 14 double padding_right;
15 double padding_bottom; 15 double padding_bottom;
16 double padding_left; 16 double padding_left;
17 }; 17 };
18 18
19 interface SkyEngine { 19 interface SkyEngine {
20 OnActivityPaused();
21 OnActivityResumed();
22
20 OnViewportMetricsChanged(ViewportMetrics metrics); 23 OnViewportMetricsChanged(ViewportMetrics metrics);
21 OnInputEvent(InputEvent event); 24 OnInputEvent(InputEvent event);
22 25
23 RunFromNetwork(string url); 26 RunFromNetwork(string url);
24 RunFromFile(string main, string package_root); 27 RunFromFile(string main, string package_root);
25 RunFromSnapshot(string path); 28 RunFromSnapshot(string path);
26 RunFromBundle(string path); 29 RunFromBundle(string path);
27 }; 30 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698