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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/public/interfaces/web_view.mojom
diff --git a/components/web_view/public/interfaces/web_view.mojom b/components/web_view/public/interfaces/web_view.mojom
index 7fda784b5c8da4383b2de313787ef3f81ae6a9b6..11f291dc3ce3beb7ecb340abb80fedf23646b6d5 100644
--- a/components/web_view/public/interfaces/web_view.mojom
+++ b/components/web_view/public/interfaces/web_view.mojom
@@ -7,6 +7,11 @@ module web_view.mojom;
import "components/mus/public/interfaces/view_tree.mojom";
import "network/public/interfaces/url_loader.mojom";
+enum ButtonState {
+ ENABLED,
+ DISABLED,
+};
+
interface WebViewClient {
// Page-generated request for a top level frame navigation.
TopLevelNavigate(mojo.URLRequest request);
@@ -14,6 +19,7 @@ interface WebViewClient {
// Loading and progress notifications.
LoadingStateChanged(bool is_loading);
ProgressChanged(double progress);
+ BackForwardChanged(ButtonState back_button, ButtonState forward_button);
// TODO(beng): also forward text direction.
TitleChanged(string? title);
@@ -25,6 +31,10 @@ interface WebView {
// Provide a ViewTreeClient for this specific WebView.
GetViewTreeClient(mojo.ViewTreeClient& view_tree_client);
+
+ // Moves forward and backward.
+ GoBack();
+ GoForward();
};
interface WebViewFactory {
« 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