| 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 web_view.mojom; | 5 module web_view.mojom; |
| 6 | 6 |
| 7 import "network/public/interfaces/url_loader.mojom"; | 7 import "network/public/interfaces/url_loader.mojom"; |
| 8 import "components/view_manager/public/interfaces/view_manager.mojom"; | 8 import "components/view_manager/public/interfaces/view_tree.mojom"; |
| 9 | 9 |
| 10 interface WebViewClient { | 10 interface WebViewClient { |
| 11 // Page-generated request for a top level frame navigation. | 11 // Page-generated request for a top level frame navigation. |
| 12 TopLevelNavigate(mojo.URLRequest request); | 12 TopLevelNavigate(mojo.URLRequest request); |
| 13 | 13 |
| 14 // Loading and progress notifications. | 14 // Loading and progress notifications. |
| 15 LoadingStateChanged(bool is_loading); | 15 LoadingStateChanged(bool is_loading); |
| 16 ProgressChanged(double progress); | 16 ProgressChanged(double progress); |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 interface WebView { | 19 interface WebView { |
| 20 // Navigate the top level frame to |request|. | 20 // Navigate the top level frame to |request|. |
| 21 LoadRequest(mojo.URLRequest request); | 21 LoadRequest(mojo.URLRequest request); |
| 22 | 22 |
| 23 // Provide a ViewManagerClient for this specific WebView. | 23 // Provide a ViewTreeClient for this specific WebView. |
| 24 GetViewManagerClient(mojo.ViewManagerClient& view_manager_client); | 24 GetViewTreeClient(mojo.ViewTreeClient& view_tree_client); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 interface WebViewFactory { | 27 interface WebViewFactory { |
| 28 CreateWebView(WebViewClient client, WebView& web_view); | 28 CreateWebView(WebViewClient client, WebView& web_view); |
| 29 }; | 29 }; |
| OLD | NEW |