| 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_OBSERVER_H_ | |
| 6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_OBSERVER_H_ | |
| 7 | |
| 8 namespace navigation { | |
| 9 | |
| 10 class View; | |
| 11 | |
| 12 class ViewObserver { | |
| 13 public: | |
| 14 // Called when network activity for the application(s) within |view| starts or | |
| 15 // stops. | |
| 16 virtual void LoadingStateChanged(View* view) {} | |
| 17 | |
| 18 // Called when the progress of network activity for the application(s) within | |
| 19 // |view| changes. | |
| 20 virtual void LoadProgressChanged(View* view, double progress) {} | |
| 21 | |
| 22 // Called when a navigation occurs within |view|. | |
| 23 virtual void NavigationStateChanged(View* view) {} | |
| 24 | |
| 25 // Called when the target URL of a mouse click at the current mouse position | |
| 26 // changes. Will provide an empty URL if no navigation would result from such | |
| 27 // a click. | |
| 28 virtual void HoverTargetURLChanged(View* view, const GURL& target_url) {} | |
| 29 }; | |
| 30 | |
| 31 } // namespace navigation | |
| 32 | |
| 33 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_OBSERVER_H_ | |
| OLD | NEW |