OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 navigation.mojom; | 5 module navigation.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/window_tree.mojom"; | 7 import "components/mus/public/interfaces/window_tree.mojom"; |
8 import "ui/mojo/geometry/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
9 import "url/mojo/url.mojom"; | 9 import "url/mojo/url.mojom"; |
10 | 10 |
11 interface ViewFactory { | 11 interface ViewFactory { |
12 CreateView(ViewClient client, View& view); | 12 CreateView(ViewClient client, View& view); |
13 }; | 13 }; |
14 | 14 |
15 interface ViewClient { | 15 interface ViewClient { |
16 LoadingStateChanged(bool is_loading); | 16 LoadingStateChanged(bool is_loading); |
17 NavigationStateChanged(url.mojom.Url url, | 17 NavigationStateChanged(url.mojom.Url url, |
18 string title, | 18 string title, |
(...skipping 14 matching lines...) Expand all Loading... |
33 | 33 |
34 GoBack(); | 34 GoBack(); |
35 GoForward(); | 35 GoForward(); |
36 Reload(bool skip_cache); | 36 Reload(bool skip_cache); |
37 Stop(); | 37 Stop(); |
38 | 38 |
39 // Obtains a Mus WindowTreeClient for the View, so it can be embedded in a | 39 // Obtains a Mus WindowTreeClient for the View, so it can be embedded in a |
40 // UI. | 40 // UI. |
41 GetWindowTreeClient(mus.mojom.WindowTreeClient& client); | 41 GetWindowTreeClient(mus.mojom.WindowTreeClient& client); |
42 }; | 42 }; |
OLD | NEW |