OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_ANDROID_OVERSCROLL_CONTROLLER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_OVERSCROLL_CONTROLLER_ANDROID_H_ |
6 #define CONTENT_BROWSER_ANDROID_OVERSCROLL_CONTROLLER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_OVERSCROLL_CONTROLLER_ANDROID_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/browser/android/overscroll_glow.h" | 9 #include "content/browser/android/overscroll_glow.h" |
10 #include "content/browser/android/overscroll_refresh.h" | 10 #include "content/browser/android/overscroll_refresh.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void SetNeedsAnimate(); | 72 void SetNeedsAnimate(); |
73 | 73 |
74 ui::WindowAndroidCompositor* const compositor_; | 74 ui::WindowAndroidCompositor* const compositor_; |
75 const float dpi_scale_; | 75 const float dpi_scale_; |
76 | 76 |
77 bool enabled_; | 77 bool enabled_; |
78 | 78 |
79 // TODO(jdduke): Factor out a common API from the two overscroll effects. | 79 // TODO(jdduke): Factor out a common API from the two overscroll effects. |
80 scoped_ptr<OverscrollGlow> glow_effect_; | 80 scoped_ptr<OverscrollGlow> glow_effect_; |
81 scoped_ptr<OverscrollRefresh> refresh_effect_; | 81 scoped_ptr<OverscrollRefresh> refresh_effect_; |
82 bool has_initialized_refresh_effect_; | 82 |
| 83 // For fullscreen HTML5 scenarios, the refresh effect will be disabled. |
83 bool is_fullscreen_; | 84 bool is_fullscreen_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(OverscrollControllerAndroid); | 86 DISALLOW_COPY_AND_ASSIGN(OverscrollControllerAndroid); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace content | 89 } // namespace content |
89 | 90 |
90 #endif // CONTENT_BROWSER_ANDROID_OVERSCROLL_CONTROLLER_ANDROID_H_ | 91 #endif // CONTENT_BROWSER_ANDROID_OVERSCROLL_CONTROLLER_ANDROID_H_ |
OLD | NEW |