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

Unified Diff: ui/events/gesture_detection/scale_gesture_detector.cc

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/gesture_detection/scale_gesture_detector.cc
diff --git a/ui/events/gesture_detection/scale_gesture_detector.cc b/ui/events/gesture_detection/scale_gesture_detector.cc
index 7afe91fd3af28e90672f82002d1523495d98ce27..a8316c7cefeb291107bd26e852a1ace3eae21654 100644
--- a/ui/events/gesture_detection/scale_gesture_detector.cc
+++ b/ui/events/gesture_detection/scale_gesture_detector.cc
@@ -7,7 +7,6 @@
#include <limits.h>
#include <cmath>
-#include "base/float_util.h"
#include "base/logging.h"
#include "ui/events/gesture_detection/motion_event.h"
#include "ui/events/gesture_detection/scale_gesture_listeners.h"
@@ -285,7 +284,7 @@ void ScaleGestureDetector::AddTouchHistory(const MotionEvent& ev) {
float total = 0;
int sample_count = 0;
for (int i = 0; i < count; i++) {
- const bool has_last_accepted = !base::IsNaN(touch_history_last_accepted_);
+ const bool has_last_accepted = !std::isnan(touch_history_last_accepted_);
const int history_size = static_cast<int>(ev.GetHistorySize());
const int pointersample_count = history_size + 1;
for (int h = 0; h < pointersample_count; h++) {
@@ -301,10 +300,10 @@ void ScaleGestureDetector::AddTouchHistory(const MotionEvent& ev) {
major = touch_max_major_;
total += major;
- if (base::IsNaN(touch_upper_) || major > touch_upper_) {
+ if (std::isnan(touch_upper_) || major > touch_upper_) {
touch_upper_ = major;
}
- if (base::IsNaN(touch_lower_) || major < touch_lower_) {
+ if (std::isnan(touch_lower_) || major < touch_lower_) {
touch_lower_ = major;
}
« sky/engine/bindings/BUILD.gn ('K') | « ui/base/BUILD.gn ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698