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

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

Issue 1531703002: Include <algorithm> if you use functions from <algorithm>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | no next file » | 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 #include "ui/events/blink/input_scroll_elasticity_controller.h" 5 #include "ui/events/blink/input_scroll_elasticity_controller.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm>
10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "cc/input/input_handler.h" 12 #include "cc/input/input_handler.h"
11 #include "ui/gfx/geometry/vector2d_conversions.h" 13 #include "ui/gfx/geometry/vector2d_conversions.h"
12 14
13 // InputScrollElasticityController is based on 15 // InputScrollElasticityController is based on
14 // WebKit/Source/platform/mac/InputScrollElasticityController.mm 16 // WebKit/Source/platform/mac/InputScrollElasticityController.mm
15 /* 17 /*
16 * Copyright (C) 2011 Apple Inc. All rights reserved. 18 * Copyright (C) 2011 Apple Inc. All rights reserved.
17 * 19 *
18 * Redistribution and use in source and binary forms, with or without 20 * Redistribution and use in source and binary forms, with or without
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 break; 409 break;
408 default: 410 default:
409 // These cases should not be hit because the stretch must be zero in the 411 // These cases should not be hit because the stretch must be zero in the
410 // Inactive and MomentumScroll states. 412 // Inactive and MomentumScroll states.
411 NOTREACHED(); 413 NOTREACHED();
412 break; 414 break;
413 } 415 }
414 } 416 }
415 417
416 } // namespace ui 418 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698