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

Unified Diff: services/navigation/public/cpp/view_delegate.h

Issue 2046723002: Add navigation client lib for convenience (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@target
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/cpp/view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/public/cpp/view_delegate.h
diff --git a/services/navigation/public/cpp/view_delegate.h b/services/navigation/public/cpp/view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..4277b98a877271c7e04fe48a7dd8a722b1eee343
--- /dev/null
+++ b/services/navigation/public/cpp/view_delegate.h
@@ -0,0 +1,43 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
+#define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
+
+#include <string>
+
+class GURL;
+namespace gfx {
+class Rect;
+}
+
+namespace navigation {
+
+class ViewDelegate {
+ public:
+ virtual ~ViewDelegate() {}
+
+ virtual void LoadingStateChanged(bool is_loading) {}
+
+ virtual void NavigationStateChanged(const GURL& url,
+ const std::string& title,
+ bool can_go_back,
+ bool can_go_forward) {}
+
+ virtual void LoadProgressChanged(double progress) {}
+
+ virtual void UpdateHoverURL(const GURL& url) {}
+
+ virtual void ViewCreated(mojom::ViewPtr view,
+ mojom::ViewClientRequest request,
+ bool is_popup,
+ const gfx::Rect& initial_bounds,
+ bool is_user_gesture) {}
+
+ virtual void Close() {}
+};
+
+} // namespace navigation
+
+#endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_
« no previous file with comments | « services/navigation/public/cpp/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698