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 content.mojom; | 5 module content.mojom; |
6 | 6 |
7 import "content/common/native_types.mojom"; | 7 import "content/common/native_types.mojom"; |
8 import "ipc/ipc.mojom"; | 8 import "ipc/ipc.mojom"; |
9 import "mojo/common/time.mojom"; | |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 import "ui/gfx/mojo/icc_profile.mojom"; | 11 import "ui/gfx/mojo/icc_profile.mojom"; |
11 | 12 |
12 struct CreateViewParams { | 13 struct CreateViewParams { |
13 // Renderer-wide preferences. | 14 // Renderer-wide preferences. |
14 RendererPreferences renderer_preferences; | 15 RendererPreferences renderer_preferences; |
15 | 16 |
16 // Preferences for this view. | 17 // Preferences for this view. |
17 WebPreferences web_preferences; | 18 WebPreferences web_preferences; |
18 | 19 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id, | 152 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id, |
152 int32 opener_routing_id, int32 parent_routing_id, | 153 int32 opener_routing_id, int32 parent_routing_id, |
153 FrameReplicationState replication_state); | 154 FrameReplicationState replication_state); |
154 | 155 |
155 // Tells the renderer that the network type has changed so that | 156 // Tells the renderer that the network type has changed so that |
156 // navigator.onLine and navigator.connection can be updated. | 157 // navigator.onLine and navigator.connection can be updated. |
157 OnNetworkConnectionChanged(NetworkConnectionType connection_type, | 158 OnNetworkConnectionChanged(NetworkConnectionType connection_type, |
158 double max_bandwidth_mbps); | 159 double max_bandwidth_mbps); |
159 | 160 |
160 // Tells the renderer process that the network quality estimate has changed. | 161 // Tells the renderer process that the network quality estimate has changed. |
161 // The RTT estimates are in milliseconds, while the downstream throughput is | 162 // The downstream throughput is computed in kilobits per second. If an |
162 // computed in kilobits per second. If an estimate of the HTTP or transport | 163 // estimate of the HTTP or transport RTT is unavailable, it will be set to |
163 // RTT is unavailable, it will be set to net::nqe::internal::InvalidRTT(). If | 164 // net::nqe::internal::InvalidRTT(). If the throughput estimate is |
164 // the throughput estimate is unavailable, it will be set to | 165 // unavailable, it will be set to net::nqe::internal::kInvalidThroughput. |
165 // net::nqe::internal::kInvalidThroughput. | 166 OnNetworkQualityChanged(mojo.common.mojom.TimeDelta http_rtt, mojo.common.mojo m.TimeDelta transport_rtt, double bandwidth_kbps); |
dcheng
2017/05/17 12:27:46
Nit: 80 characters
tbansal1
2017/05/18 00:10:29
Done. I assumed git cl format would have fixed it.
| |
166 OnNetworkQualityChanged(double http_rtt_msec, double transport_rtt_msec, doubl e bandwidth_kbps); | |
167 | 167 |
168 // Tells the renderer to suspend/resume the webkit timers. Only for use on | 168 // Tells the renderer to suspend/resume the webkit timers. Only for use on |
169 // Android. | 169 // Android. |
170 SetWebKitSharedTimersSuspended(bool suspend); | 170 SetWebKitSharedTimersSuspended(bool suspend); |
171 | 171 |
172 // Tells the renderer about a scrollbar appearance change. Only for use on | 172 // Tells the renderer about a scrollbar appearance change. Only for use on |
173 // OS X. | 173 // OS X. |
174 UpdateScrollbarTheme(UpdateScrollbarThemeParams params); | 174 UpdateScrollbarTheme(UpdateScrollbarThemeParams params); |
175 | 175 |
176 // Notification that the OS X Aqua color preferences changed. | 176 // Notification that the OS X Aqua color preferences changed. |
177 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color, | 177 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color, |
178 string highlight_color); | 178 string highlight_color); |
179 | 179 |
180 // Tells the renderer to empty its plugin list cache, optional reloading | 180 // Tells the renderer to empty its plugin list cache, optional reloading |
181 // pages containing plugins. | 181 // pages containing plugins. |
182 PurgePluginListCache(bool reload_pages); | 182 PurgePluginListCache(bool reload_pages); |
183 }; | 183 }; |
OLD | NEW |