Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: content/browser/web_contents/web_contents_view_android.h

Issue 2528823002: Separate SwipeRefreshHandler and ContentViewCore (Closed)
Patch Set: tedchoc's requested changes Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..c1ad8dc0a6065561d92d3f937ff69435b045d676 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,9 @@ class WebContentsViewAndroid : public WebContentsView,
return synchronous_compositor_client_;
}
+ void SetOverscrollRefreshHandler(
+ std::unique_ptr<ui::OverscrollRefreshHandler> overscroll_refresh_handler);
+
// WebContentsView implementation --------------------------------------------
gfx::NativeView GetNativeView() const override;
gfx::NativeView GetContentNativeView() const override;
@@ -79,6 +83,7 @@ class WebContentsViewAndroid : public WebContentsView,
bool right_aligned,
bool allow_multiple_selection) override;
void HidePopupMenu() override;
+ ui::OverscrollRefreshHandler* GetOverscrollRefreshHandler() const override;
void StartDragging(const DropData& drop_data,
blink::WebDragOperationsMask allowed_ops,
const gfx::ImageSkia& image,
@@ -107,6 +112,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_;
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698