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

Unified Diff: ui/base/touch/axis.cc

Issue 9773024: This patch implements Chromium's Aura gesture recognizer in terms of utouch-grail and utouch-frame … (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « ui/base/touch/axis.h ('k') | ui/base/touch/multi_touch_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/axis.cc
===================================================================
--- ui/base/touch/axis.cc (revision 0)
+++ ui/base/touch/axis.cc (revision 0)
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/touch/axis.h"
+
+#include <limits>
+
+namespace ui {
+
+Axis::Axis()
+ : id_(-1),
+ type_(AXIS_TYPE_UNKNOWN),
+ name_("Unknown axis"),
+ min_(-std::numeric_limits<float>::max()),
+ max_(std::numeric_limits<float>::max()),
+ resolution_(0.f),
+ value_(0.f),
+ payload_(NULL) {
+}
+
+Axis::~Axis() {
+ delete(payload_);
+}
+
+} // namespace ui
+
Property changes on: ui/base/touch/axis.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/base/touch/axis.h ('k') | ui/base/touch/multi_touch_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698