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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/BatteryStatusManager.java

Issue 356873002: battery-status: Implement the battery-status API for chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698