crw_web_view_navigation_observer.h 843 B

12345678910111213141516171819202122232425
  1. // Copyright 2019 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. #ifndef IOS_WEB_NAVIGATION_CRW_WEB_VIEW_NAVIGATION_OBSERVER_H_
  5. #define IOS_WEB_NAVIGATION_CRW_WEB_VIEW_NAVIGATION_OBSERVER_H_
  6. #import <WebKit/WebKit.h>
  7. #import "ios/web/web_state/ui/crw_web_view_handler.h"
  8. @protocol CRWWebViewNavigationObserverDelegate;
  9. // Observes the navigation-related events of a WebView, making sure that the
  10. // different navigaiton events are taken into account.
  11. @interface CRWWebViewNavigationObserver : CRWWebViewHandler
  12. @property(nonatomic, weak) id<CRWWebViewNavigationObserverDelegate> delegate;
  13. // The webView to observe.
  14. @property(nonatomic, weak) WKWebView* webView;
  15. @end
  16. #endif // IOS_WEB_NAVIGATION_CRW_WEB_VIEW_NAVIGATION_OBSERVER_H_