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

Side by Side Diff: content/browser/device_sensors/sensor_manager_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/device_sensors/sensor_manager_android.h" 5 #include "content/browser/device_sensors/sensor_manager_android.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/android/context_utils.h" 9 #include "base/android/context_utils.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "jni/DeviceSensors_jni.h" 15 #include "jni/DeviceSensors_jni.h"
16 16
17 using base::android::AttachCurrentThread; 17 using base::android::AttachCurrentThread;
18 using base::android::JavaParamRef;
18 19
19 namespace { 20 namespace {
20 21
21 void UpdateDeviceOrientationHistogram( 22 void UpdateDeviceOrientationHistogram(
22 content::SensorManagerAndroid::OrientationSensorType type) { 23 content::SensorManagerAndroid::OrientationSensorType type) {
23 UMA_HISTOGRAM_ENUMERATION("InertialSensor.DeviceOrientationSensorAndroid", 24 UMA_HISTOGRAM_ENUMERATION("InertialSensor.DeviceOrientationSensorAndroid",
24 type, content::SensorManagerAndroid::ORIENTATION_SENSOR_MAX); 25 type, content::SensorManagerAndroid::ORIENTATION_SENSOR_MAX);
25 } 26 }
26 27
27 void SetOrientation(content::DeviceOrientationHardwareBuffer* buffer, 28 void SetOrientation(content::DeviceOrientationHardwareBuffer* buffer,
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 } 543 }
543 } 544 }
544 } 545 }
545 546
546 void SensorManagerAndroid::Shutdown() { 547 void SensorManagerAndroid::Shutdown() {
547 DCHECK_CURRENTLY_ON(BrowserThread::UI); 548 DCHECK_CURRENTLY_ON(BrowserThread::UI);
548 is_shutdown_ = true; 549 is_shutdown_ = true;
549 } 550 }
550 551
551 } // namespace content 552 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/web_contents_observer_proxy.cc ('k') | content/browser/frame_host/navigation_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698