Chromium Code Reviews| Index: content/browser/web_contents/web_contents_view_android.h |
| diff --git a/content/browser/web_contents/web_contents_view_android.h b/content/browser/web_contents/web_contents_view_android.h |
| index 2c655a6f62aaf80e8815f7924b116e6073e067f6..ce253a229f4c0886fea0677a546ded2c6cb9fd8f 100644 |
| --- a/content/browser/web_contents/web_contents_view_android.h |
| +++ b/content/browser/web_contents/web_contents_view_android.h |
| @@ -13,6 +13,7 @@ |
| #include "content/public/browser/web_contents_view_delegate.h" |
| #include "content/public/common/context_menu_params.h" |
| #include "content/public/common/drop_data.h" |
| +#include "ui/android/overscroll_refresh.h" |
| #include "ui/android/view_android.h" |
| #include "ui/gfx/geometry/rect_f.h" |
| @@ -42,6 +43,11 @@ class WebContentsViewAndroid : public WebContentsView, |
| return synchronous_compositor_client_; |
| } |
| + void SetOverscrollRefreshHandler( |
| + std::unique_ptr<ui::OverscrollRefreshHandler> overscroll_refresh_handler); |
| + |
| + ui::OverscrollRefreshHandler* GetOverscrollRefreshHandler() const override; |
|
boliu
2016/12/03 01:05:28
Move this next to the other RenderViewHostDelegate
rlanday
2016/12/05 19:53:56
Ok
|
| + |
| // WebContentsView implementation -------------------------------------------- |
| gfx::NativeView GetNativeView() const override; |
| gfx::NativeView GetContentNativeView() const override; |
| @@ -107,6 +113,9 @@ class WebContentsViewAndroid : public WebContentsView, |
| // ContentViewCoreImpl is our interface to the view system. |
| ContentViewCoreImpl* content_view_core_; |
| + // Handles "overscroll to refresh" events |
| + std::unique_ptr<ui::OverscrollRefreshHandler> overscroll_refresh_handler_; |
| + |
| // Interface for extensions to WebContentsView. Used to show the context menu. |
| std::unique_ptr<WebContentsViewDelegate> delegate_; |