| 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 #ifndef CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "content/public/browser/bluetooth_chooser.h" | 9 #include "content/public/browser/bluetooth_chooser.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // content::BluetoothChooser: | 25 // content::BluetoothChooser: |
| 26 bool CanAskForScanningPermission() override; | 26 bool CanAskForScanningPermission() override; |
| 27 void SetAdapterPresence(AdapterPresence presence) override; | 27 void SetAdapterPresence(AdapterPresence presence) override; |
| 28 void ShowDiscoveryState(DiscoveryState state) override; | 28 void ShowDiscoveryState(DiscoveryState state) override; |
| 29 void AddOrUpdateDevice(const std::string& device_id, | 29 void AddOrUpdateDevice(const std::string& device_id, |
| 30 bool should_update_name, | 30 bool should_update_name, |
| 31 const base::string16& device_name, | 31 const base::string16& device_name, |
| 32 bool is_gatt_connected, | 32 bool is_gatt_connected, |
| 33 bool is_paired, | 33 bool is_paired, |
| 34 const int8_t* rssi) override; | 34 int signal_strength_level) override; |
| 35 void RemoveDevice(const std::string& device_id) override; | 35 void RemoveDevice(const std::string& device_id) override; |
| 36 | 36 |
| 37 // Report the dialog's result. | 37 // Report the dialog's result. |
| 38 void OnDialogFinished(JNIEnv* env, | 38 void OnDialogFinished(JNIEnv* env, |
| 39 const base::android::JavaParamRef<jobject>& obj, | 39 const base::android::JavaParamRef<jobject>& obj, |
| 40 jint event_type, | 40 jint event_type, |
| 41 const base::android::JavaParamRef<jstring>& device_id); | 41 const base::android::JavaParamRef<jstring>& device_id); |
| 42 | 42 |
| 43 // Notify bluetooth stack that the search needs to be re-issued. | 43 // Notify bluetooth stack that the search needs to be re-issued. |
| 44 void RestartSearch(); | 44 void RestartSearch(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 void OpenURL(const char* url); | 61 void OpenURL(const char* url); |
| 62 base::android::ScopedJavaGlobalRef<jobject> java_dialog_; | 62 base::android::ScopedJavaGlobalRef<jobject> java_dialog_; |
| 63 | 63 |
| 64 content::WebContents* web_contents_; | 64 content::WebContents* web_contents_; |
| 65 BluetoothChooser::EventHandler event_handler_; | 65 BluetoothChooser::EventHandler event_handler_; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ | 68 #endif // CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ |
| OLD | NEW |