OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.graphics.Color; | 10 import android.graphics.Color; |
(...skipping 22 matching lines...) Expand all Loading... |
33 public class BluetoothChooserDialog implements ItemChooserDialog.ItemSelectedCal
lback { | 33 public class BluetoothChooserDialog implements ItemChooserDialog.ItemSelectedCal
lback { |
34 Context mContext; | 34 Context mContext; |
35 | 35 |
36 // The dialog to show to let the user pick a device. | 36 // The dialog to show to let the user pick a device. |
37 ItemChooserDialog mItemChooserDialog; | 37 ItemChooserDialog mItemChooserDialog; |
38 | 38 |
39 // The origin for the site wanting to pair with the bluetooth devices. | 39 // The origin for the site wanting to pair with the bluetooth devices. |
40 String mOrigin; | 40 String mOrigin; |
41 | 41 |
42 // The security level of the connection to the site wanting to pair with the | 42 // The security level of the connection to the site wanting to pair with the |
43 // bluetooth devices. For valid values see connection_security::SecurityLeve
l. | 43 // bluetooth devices. For valid values see SecurityStateModel::SecurityLevel
. |
44 int mSecurityLevel; | 44 int mSecurityLevel; |
45 | 45 |
46 // A pointer back to the native part of the implementation for this dialog. | 46 // A pointer back to the native part of the implementation for this dialog. |
47 long mNativeBluetoothChooserDialogPtr; | 47 long mNativeBluetoothChooserDialogPtr; |
48 | 48 |
49 // The type of link that is shown within the dialog. | 49 // The type of link that is shown within the dialog. |
50 private enum LinkType { | 50 private enum LinkType { |
51 EXPLAIN_BLUETOOTH, | 51 EXPLAIN_BLUETOOTH, |
52 EXPLAIN_PARING, | 52 EXPLAIN_PARING, |
53 ADAPTER_OFF, | 53 ADAPTER_OFF, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 mItemChooserDialog.setErrorState(); | 220 mItemChooserDialog.setErrorState(); |
221 } | 221 } |
222 | 222 |
223 private native void nativeOnDeviceSelected(long nativeBluetoothChooserAndroi
d, String deviceId); | 223 private native void nativeOnDeviceSelected(long nativeBluetoothChooserAndroi
d, String deviceId); |
224 private native void nativeRestartSearch(long nativeBluetoothChooserAndroid); | 224 private native void nativeRestartSearch(long nativeBluetoothChooserAndroid); |
225 // Help links. | 225 // Help links. |
226 private native void nativeShowBluetoothOverviewLink(long nativeBluetoothChoo
serAndroid); | 226 private native void nativeShowBluetoothOverviewLink(long nativeBluetoothChoo
serAndroid); |
227 private native void nativeShowBluetoothPairingLink(long nativeBluetoothChoos
erAndroid); | 227 private native void nativeShowBluetoothPairingLink(long nativeBluetoothChoos
erAndroid); |
228 private native void nativeShowBluetoothAdapterOffLink(long nativeBluetoothCh
ooserAndroid); | 228 private native void nativeShowBluetoothAdapterOffLink(long nativeBluetoothCh
ooserAndroid); |
229 } | 229 } |
OLD | NEW |