OLD | NEW |
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/viewport/input_event.mojom"; | 7 import "sky/services/viewport/input_event.mojom"; |
8 | 8 |
9 // TODO(eseidel): Rename this interface. | 9 // TODO(eseidel): Rename this interface. |
10 interface ViewportObserver { | 10 interface ViewportObserver { |
11 OnViewportMetricsChanged(int32 width, int32 height, float device_pixel_ratio); | 11 OnViewportMetricsChanged(int32 width, int32 height, float device_pixel_ratio); |
12 OnInputEvent(InputEvent event); | 12 OnInputEvent(InputEvent event); |
13 | 13 |
14 RunFromNetwork(string url); | 14 RunFromNetwork(string url); |
15 RunFromFile(string main, string package_root); | 15 RunFromFile(string main, string package_root); |
16 RunFromSnapshot(string url, handle<data_pipe_consumer> snapshot); | 16 RunFromSnapshot(string path); |
17 }; | 17 }; |
OLD | NEW |