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_ |