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

Unified Diff: services/navigation/public/interfaces/view.mojom

Issue 2055553002: Send Navigation notifications to clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « services/navigation/navigation_unittest.cc ('k') | services/navigation/view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/public/interfaces/view.mojom
diff --git a/services/navigation/public/interfaces/view.mojom b/services/navigation/public/interfaces/view.mojom
index 2d1e28b43db556996732d1ba7769b606e4ad59be..580ba2e8c6e141a701f4b7607c477a14b584a5b9 100644
--- a/services/navigation/public/interfaces/view.mojom
+++ b/services/navigation/public/interfaces/view.mojom
@@ -8,6 +8,38 @@ import "components/mus/public/interfaces/window_tree.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
import "url/mojo/url.mojom";
+// Copied from //content/public/browser/navigation_entry.h
+struct NavigationEntry {
+ int32 id;
+ url.mojom.Url url;
+ string title;
+ array<url.mojom.Url> redirect_chain;
+};
+
+// Copied from //content/public/browser/navigation_type.h
+enum NavigationType {
+ UNKNOWN,
+ NEW_PAGE,
+ EXISTING_PAGE,
+ SAME_PAGE,
+ NEW_SUBFRAME,
+ AUTO_SUBFRAME,
+ NAV_IGNORE
+};
+
+// Copied from //content/public/browser/navigation_details.h
+struct NavigationCommittedDetails {
+ int32 entry;
+ NavigationType type;
+ int32 previous_entry_index;
+ url.mojom.Url previous_url;
+ bool did_replace_entry;
+ bool is_in_page;
+ bool is_main_frame;
+ // SSLStatus ssl_status;
+ int32 http_status_code;
+};
+
interface ViewFactory {
CreateView(ViewClient client, View& view);
};
@@ -27,6 +59,14 @@ interface ViewClient {
gfx.mojom.Rect initial_rect,
bool user_gesture);
Close();
+
+ // See //content/public/browser/notification_types.h for descriptions of
+ // these events.
+ NavigationPending(NavigationEntry entry);
+ NavigationCommitted(NavigationCommittedDetails details,
+ int32 current_index);
+ NavigationListPruned(bool from_front, int32 count);
+ NavigationEntryChanged(NavigationEntry entry, int32 entry_index);
};
interface View {
@@ -35,6 +75,7 @@ interface View {
GoBack();
GoForward();
+ NavigateToOffset(int32 offset);
Reload(bool skip_cache);
Stop();
« no previous file with comments | « services/navigation/navigation_unittest.cc ('k') | services/navigation/view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698