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

Side by Side Diff: content/browser/android/touch_point.cc

Issue 10798010: Uses gyp "rules" rather than "actions" templates for the JNI generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo on content_jni.gypi Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/android/touch_point.h" 5 #include "content/browser/android/touch_point.h"
6 6
7 #include "base/debug/debugger.h" 7 #include "base/debug/debugger.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
11 #include "jni/touch_point_jni.h" 11 #include "jni/TouchPoint_jni.h"
12 12
13 using WebKit::WebTouchEvent; 13 using WebKit::WebTouchEvent;
14 using WebKit::WebTouchPoint; 14 using WebKit::WebTouchPoint;
15 15
16 namespace { 16 namespace {
17 17
18 void MaybeAddTouchPoint(JNIEnv* env, jobject pt, WebKit::WebTouchEvent& event) { 18 void MaybeAddTouchPoint(JNIEnv* env, jobject pt, WebKit::WebTouchEvent& event) {
19 WebTouchPoint::State state = static_cast<WebTouchPoint::State>( 19 WebTouchPoint::State state = static_cast<WebTouchPoint::State>(
20 Java_TouchPoint_getState(env, pt)); 20 Java_TouchPoint_getState(env, pt));
21 if (state == WebTouchPoint::StateUndefined) 21 if (state == WebTouchPoint::StateUndefined)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool RegisterTouchPoint(JNIEnv* env) { 99 bool RegisterTouchPoint(JNIEnv* env) {
100 if (!RegisterNativesImpl(env)) 100 if (!RegisterNativesImpl(env))
101 return false; 101 return false;
102 102
103 RegisterConstants(env); 103 RegisterConstants(env);
104 104
105 return true; 105 return true;
106 } 106 }
107 107
108 } // namespace content 108 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/sandboxed_process_launcher.cc ('k') | content/browser/device_orientation/data_fetcher_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698