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

Side by Side Diff: ui/base/touch/touch_device_android.cc

Issue 853033002: More delete + gfx_unittests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix android trybots Created 5 years, 11 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 | « ui/base/touch/touch_device.cc ('k') | ui/base/touch/touch_device_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/touch/touch_device.h"
6
7 #include "jni/TouchDevice_jni.h"
8
9 namespace ui {
10
11 bool IsTouchDevicePresent() {
12 return true;
13 }
14
15 int MaxTouchPoints() {
16 JNIEnv* env = base::android::AttachCurrentThread();
17 jobject context = base::android::GetApplicationContext();
18 jint max_touch_points = Java_TouchDevice_maxTouchPoints(env, context);
19 return static_cast<int>(max_touch_points);
20 }
21
22 bool RegisterTouchDeviceAndroid(JNIEnv* env) {
23 return RegisterNativesImpl(env);
24 }
25
26 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/touch/touch_device.cc ('k') | ui/base/touch/touch_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698