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

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

Issue 1333173004: mandoline: Add back/forward support and UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 3 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/view_tree.mojom";
8 import "network/public/interfaces/url_loader.mojom"; 8 import "network/public/interfaces/url_loader.mojom";
9 9
10 enum ButtonState {
11 ENABLED,
12 DISABLED,
13 };
14
10 interface WebViewClient { 15 interface WebViewClient {
11 // Page-generated request for a top level frame navigation. 16 // Page-generated request for a top level frame navigation.
12 TopLevelNavigate(mojo.URLRequest request); 17 TopLevelNavigate(mojo.URLRequest request);
13 18
14 // Loading and progress notifications. 19 // Loading and progress notifications.
15 LoadingStateChanged(bool is_loading); 20 LoadingStateChanged(bool is_loading);
16 ProgressChanged(double progress); 21 ProgressChanged(double progress);
22 BackForwardChanged(ButtonState back_button, ButtonState forward_button);
17 23
18 // TODO(beng): also forward text direction. 24 // TODO(beng): also forward text direction.
19 TitleChanged(string? title); 25 TitleChanged(string? title);
20 }; 26 };
21 27
22 interface WebView { 28 interface WebView {
23 // Navigate the top level frame to |request|. 29 // Navigate the top level frame to |request|.
24 LoadRequest(mojo.URLRequest request); 30 LoadRequest(mojo.URLRequest request);
25 31
26 // Provide a ViewTreeClient for this specific WebView. 32 // Provide a ViewTreeClient for this specific WebView.
27 GetViewTreeClient(mojo.ViewTreeClient& view_tree_client); 33 GetViewTreeClient(mojo.ViewTreeClient& view_tree_client);
34
35 // Moves forward and backward.
36 GoBack();
37 GoForward();
28 }; 38 };
29 39
30 interface WebViewFactory { 40 interface WebViewFactory {
31 CreateWebView(WebViewClient client, WebView& web_view); 41 CreateWebView(WebViewClient client, WebView& web_view);
32 }; 42 };
OLDNEW
« no previous file with comments | « components/web_view/BUILD.gn ('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