OLD | NEW |
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 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
6 | 6 |
7 import android.content.BroadcastReceiver; | 7 import android.content.BroadcastReceiver; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.content.IntentFilter; | 10 import android.content.IntentFilter; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 if (mNativePtr != 0) { | 133 if (mNativePtr != 0) { |
134 nativeGotBatteryStatus(mNativePtr, charging, chargingTime, disch
argingTime, level); | 134 nativeGotBatteryStatus(mNativePtr, charging, chargingTime, disch
argingTime, level); |
135 } | 135 } |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 /** | 139 /** |
140 * Native JNI call | 140 * Native JNI call |
141 * see content/browser/battery_status/battery_status_manager.cc | 141 * see content/browser/battery_status/battery_status_manager.cc |
142 */ | 142 */ |
143 private native void nativeGotBatteryStatus(long nativeBatteryStatusManager, | 143 private native void nativeGotBatteryStatus(long nativeBatteryStatusManagerAn
droid, |
144 boolean charging, double chargingTime, double dischargingTime, doubl
e level); | 144 boolean charging, double chargingTime, double dischargingTime, doubl
e level); |
145 } | 145 } |
OLD | NEW |