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

Side by Side Diff: device/geolocation/location_api_adapter_android.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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 "device/geolocation/location_api_adapter_android.h" 5 #include "device/geolocation/location_api_adapter_android.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "device/geolocation/location_provider_android.h" 13 #include "device/geolocation/location_provider_android.h"
14 #include "jni/LocationProviderAdapter_jni.h" 14 #include "jni/LocationProviderAdapter_jni.h"
15 15
16 using base::android::AttachCurrentThread; 16 using base::android::AttachCurrentThread;
17 using base::android::CheckException; 17 using base::android::CheckException;
18 using base::android::ClearException; 18 using base::android::ClearException;
19 using base::android::JavaParamRef;
19 using device::AndroidLocationApiAdapter; 20 using device::AndroidLocationApiAdapter;
20 21
21 static void NewLocationAvailable(JNIEnv* env, 22 static void NewLocationAvailable(JNIEnv* env,
22 const JavaParamRef<jclass>&, 23 const JavaParamRef<jclass>&,
23 jdouble latitude, 24 jdouble latitude,
24 jdouble longitude, 25 jdouble longitude,
25 jdouble time_stamp, 26 jdouble time_stamp,
26 jboolean has_altitude, 27 jboolean has_altitude,
27 jdouble altitude, 28 jdouble altitude,
28 jboolean has_accuracy, 29 jboolean has_accuracy,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 base::AutoLock lock(lock_); 169 base::AutoLock lock(lock_);
169 if (!task_runner_.get()) 170 if (!task_runner_.get())
170 return; 171 return;
171 task_runner_->PostTask( 172 task_runner_->PostTask(
172 FROM_HERE, 173 FROM_HERE,
173 base::Bind(&AndroidLocationApiAdapter::NotifyProviderNewGeoposition, 174 base::Bind(&AndroidLocationApiAdapter::NotifyProviderNewGeoposition,
174 geoposition)); 175 geoposition));
175 } 176 }
176 177
177 } // namespace device 178 } // namespace device
OLDNEW
« no previous file with comments | « device/gamepad/gamepad_platform_data_fetcher_android.cc ('k') | device/power_save_blocker/power_save_blocker_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698