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 "services/ui/public/interfaces/window_tree.mojom"; | 7 import "services/ui/public/interfaces/window_tree.mojom"; |
8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
9 import "url/mojo/url.mojom"; | 9 import "url/mojo/url.mojom"; |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // I didn't want to disrupt content/public/browser based on an experiment. | 22 // I didn't want to disrupt content/public/browser based on an experiment. |
23 | 23 |
24 // Copied from //content/public/browser/navigation_entry.h | 24 // Copied from //content/public/browser/navigation_entry.h |
25 struct NavigationEntry { | 25 struct NavigationEntry { |
26 int32 id; | 26 int32 id; |
27 url.mojom.Url url; | 27 url.mojom.Url url; |
28 string title; | 28 string title; |
29 array<url.mojom.Url> redirect_chain; | 29 array<url.mojom.Url> redirect_chain; |
30 }; | 30 }; |
31 | 31 |
32 // Copied from //content/public/browser/navigation_type.h | 32 // Copied from //content/public/browser/navigation_types.h |
33 enum NavigationType { | 33 enum NavigationType { |
34 UNKNOWN, | 34 UNKNOWN, |
35 NEW_PAGE, | 35 NEW_PAGE, |
36 EXISTING_PAGE, | 36 EXISTING_PAGE, |
37 SAME_PAGE, | 37 SAME_PAGE, |
38 NEW_SUBFRAME, | 38 NEW_SUBFRAME, |
39 AUTO_SUBFRAME, | 39 AUTO_SUBFRAME, |
40 NAV_IGNORE | 40 NAV_IGNORE |
41 }; | 41 }; |
42 | 42 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // UI. | 118 // UI. |
119 GetWindowTreeClient(ui.mojom.WindowTreeClient& client); | 119 GetWindowTreeClient(ui.mojom.WindowTreeClient& client); |
120 | 120 |
121 ShowInterstitial(string html); | 121 ShowInterstitial(string html); |
122 HideInterstitial(); | 122 HideInterstitial(); |
123 | 123 |
124 // The resize area is a rectangle in the bottom corner of the view that allows | 124 // The resize area is a rectangle in the bottom corner of the view that allows |
125 // the top-level window containing the view to be interactively resized. | 125 // the top-level window containing the view to be interactively resized. |
126 SetResizerSize(gfx.mojom.Size size); | 126 SetResizerSize(gfx.mojom.Size size); |
127 }; | 127 }; |
OLD | NEW |