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

Unified Diff: ui/android/overscroll_refresh.h

Issue 1419123002: android: move overscroll effects to ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix exports for component build Created 5 years, 2 months 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
« no previous file with comments | « ui/android/overscroll_glow.cc ('k') | ui/android/overscroll_refresh.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/overscroll_refresh.h
diff --git a/content/browser/android/overscroll_refresh.h b/ui/android/overscroll_refresh.h
similarity index 91%
rename from content/browser/android/overscroll_refresh.h
rename to ui/android/overscroll_refresh.h
index 43ed083325805a4c6cb77cb6e249330379883bef..451805ed7c02c3d58b5a20ad3b7bdcab20887c5a 100644
--- a/content/browser/android/overscroll_refresh.h
+++ b/ui/android/overscroll_refresh.h
@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_ANDROID_OVERSCROLL_REFRESH_H_
-#define CONTENT_BROWSER_ANDROID_OVERSCROLL_REFRESH_H_
+#ifndef UI_ANDROID_OVERSCROLL_REFRESH_H_
+#define UI_ANDROID_OVERSCROLL_REFRESH_H_
#include "base/macros.h"
-#include "content/common/content_export.h"
+#include "ui/android/ui_android_export.h"
#include "ui/gfx/geometry/size_f.h"
#include "ui/gfx/geometry/vector2d_f.h"
-namespace content {
+namespace ui {
-class CONTENT_EXPORT OverscrollRefreshHandler {
+class UI_ANDROID_EXPORT OverscrollRefreshHandler {
public:
// Signals the start of an overscrolling pull. Returns whether the handler
// will consume the overscroll gesture, in which case it will receive the
@@ -41,7 +41,7 @@ class CONTENT_EXPORT OverscrollRefreshHandler {
// 3) The initial scroll direction is upward.
// The actuall pull response, animation and action are delegated to the
// provided refresh handler.
-class CONTENT_EXPORT OverscrollRefresh {
+class UI_ANDROID_EXPORT OverscrollRefresh {
public:
// Minmum number of overscrolling pull events required to activate the effect.
// Useful for avoiding accidental triggering when a scroll janks (is delayed),
@@ -101,4 +101,4 @@ class CONTENT_EXPORT OverscrollRefresh {
} // namespace content
-#endif // CONTENT_BROWSER_ANDROID_OVERSCROLL_REFRESH_H_
+#endif // UI_ANDROID_OVERSCROLL_REFRESH_H_
« no previous file with comments | « ui/android/overscroll_glow.cc ('k') | ui/android/overscroll_refresh.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698