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

Side by Side Diff: ui/events/blink/did_overscroll_params.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Added missing files Created 3 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
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 #include "ui/events/blink/did_overscroll_params.h" 5 #include "ui/events/blink/did_overscroll_params.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 DidOverscrollParams::DidOverscrollParams() {} 9 DidOverscrollParams::DidOverscrollParams() {}
10 10
11 DidOverscrollParams::~DidOverscrollParams() {} 11 DidOverscrollParams::~DidOverscrollParams() {}
12 12
13 void DidOverscrollParams::ClearX() {
14 accumulated_overscroll.set_x(0);
15 latest_overscroll_delta.set_x(0);
16 current_fling_velocity.set_x(0);
17 }
18
19 void DidOverscrollParams::ClearY() {
20 accumulated_overscroll.set_y(0);
21 latest_overscroll_delta.set_y(0);
22 current_fling_velocity.set_y(0);
23 }
majidvp 2017/05/18 15:26:10 These methods are used only once and it the logic
sunyunjia 2017/05/19 20:14:24 Done.
24
13 } // namespace ui 25 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698