Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: components/web_view/public/interfaces/web_view.mojom

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/mus/public/interfaces/view_tree.mojom"; 7 import "components/mus/public/interfaces/window_tree.mojom";
8 import "network/public/interfaces/url_loader.mojom"; 8 import "network/public/interfaces/url_loader.mojom";
9 9
10 enum ButtonState { 10 enum ButtonState {
11 ENABLED, 11 ENABLED,
12 DISABLED, 12 DISABLED,
13 }; 13 };
14 14
15 interface WebViewClient { 15 interface WebViewClient {
16 // Page-generated request for a top level frame navigation. 16 // Page-generated request for a top level frame navigation.
17 TopLevelNavigateRequest(mojo.URLRequest request); 17 TopLevelNavigateRequest(mojo.URLRequest request);
(...skipping 15 matching lines...) Expand all
33 33
34 // Reports which find match is selected. (If there are five highlighted 34 // Reports which find match is selected. (If there are five highlighted
35 // matches on a page, and the 2nd is selected, |active_match_ordinal| is 2.) 35 // matches on a page, and the 2nd is selected, |active_match_ordinal| is 2.)
36 FindInPageSelectionUpdated(int32 request_id, int32 active_match_ordinal); 36 FindInPageSelectionUpdated(int32 request_id, int32 active_match_ordinal);
37 }; 37 };
38 38
39 interface WebView { 39 interface WebView {
40 // Navigate the top level frame to |request|. 40 // Navigate the top level frame to |request|.
41 LoadRequest(mojo.URLRequest request); 41 LoadRequest(mojo.URLRequest request);
42 42
43 // Provide a ViewTreeClient for this specific WebView. 43 // Provide a WindowTreeClient for this specific WebView.
44 GetViewTreeClient(mojo.ViewTreeClient& view_tree_client); 44 GetWindowTreeClient(mus.mojom.WindowTreeClient& window_tree_client);
45 45
46 // Finds a string in page. 46 // Finds a string in page.
47 Find(string search_text, bool forward_direction); 47 Find(string search_text, bool forward_direction);
48 StopFinding(); 48 StopFinding();
49 49
50 // Moves forward and backward. 50 // Moves forward and backward.
51 GoBack(); 51 GoBack();
52 GoForward(); 52 GoForward();
53 }; 53 };
54 54
55 interface WebViewFactory { 55 interface WebViewFactory {
56 CreateWebView(WebViewClient client, WebView& web_view); 56 CreateWebView(WebViewClient client, WebView& web_view);
57 }; 57 };
OLDNEW
« no previous file with comments | « components/web_view/public/cpp/web_view.cc ('k') | components/web_view/test_runner/test_runner_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698