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

Side by Side Diff: content/browser/android/overscroll_controller_android.h

Issue 1084533004: [Android] Disable the refresh effect for fullscreen HTML5 scenarios (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/android/overscroll_controller_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/overscroll_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698