OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_ |
| 6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 class GURL; |
| 11 namespace gfx { |
| 12 class Rect; |
| 13 } |
| 14 |
| 15 namespace navigation { |
| 16 |
| 17 class ViewDelegate { |
| 18 public: |
| 19 virtual ~ViewDelegate() {} |
| 20 |
| 21 virtual void LoadingStateChanged(bool is_loading) {} |
| 22 |
| 23 virtual void NavigationStateChanged(const GURL& url, |
| 24 const std::string& title, |
| 25 bool can_go_back, |
| 26 bool can_go_forward) {} |
| 27 |
| 28 virtual void LoadProgressChanged(double progress) {} |
| 29 |
| 30 virtual void UpdateHoverURL(const GURL& url) {} |
| 31 |
| 32 virtual void ViewCreated(mojom::ViewPtr view, |
| 33 mojom::ViewClientRequest request, |
| 34 bool is_popup, |
| 35 const gfx::Rect& initial_bounds, |
| 36 bool is_user_gesture) {} |
| 37 |
| 38 virtual void Close() {} |
| 39 }; |
| 40 |
| 41 } // namespace navigation |
| 42 |
| 43 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_DELEGATE_H_ |
OLD | NEW |