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

Unified Diff: services/navigation/view_impl.h

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/public/interfaces/view.mojom ('k') | services/navigation/view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/view_impl.h
diff --git a/services/navigation/view_impl.h b/services/navigation/view_impl.h
index c905c8a07dedb6446f3147f9e9acdcb69c4f39c4..180f68a5aafd48b589b7f24a41636fb16a56fb0d 100644
--- a/services/navigation/view_impl.h
+++ b/services/navigation/view_impl.h
@@ -7,6 +7,8 @@
#include "base/macros.h"
#include "components/mus/public/cpp/window_tree_client_delegate.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_delegate.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -26,6 +28,7 @@ namespace navigation {
class ViewImpl : public mojom::View,
public content::WebContentsDelegate,
+ public content::NotificationObserver,
public mus::WindowTreeClientDelegate,
public views::WidgetDelegate {
public:
@@ -41,6 +44,7 @@ class ViewImpl : public mojom::View,
void NavigateTo(const GURL& url) override;
void GoBack() override;
void GoForward() override;
+ void NavigateToOffset(int offset) override;
void Reload(bool skip_cache) override;
void Stop() override;
void GetWindowTreeClient(
@@ -66,6 +70,11 @@ class ViewImpl : public mojom::View,
void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
gfx::Rect GetRootWindowResizerRect() const override;
+ // content::NotificationObserver:
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
+
// mus::WindowTreeClientDelegate:
void OnEmbed(mus::Window* root) override;
void OnWindowTreeClientDestroyed(mus::WindowTreeClient* client) override;
@@ -85,6 +94,8 @@ class ViewImpl : public mojom::View,
std::unique_ptr<content::WebContents> web_contents_;
+ content::NotificationRegistrar registrar_;
+
std::unique_ptr<views::Widget> widget_;
gfx::Size resizer_size_;
« no previous file with comments | « services/navigation/public/interfaces/view.mojom ('k') | services/navigation/view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698