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

Side by Side Diff: chrome/browser/ui/android/bluetooth_chooser_android.h

Issue 2753613002: Remove content::BluetoothChooser::RemoveDevice() function (Closed)
Patch Set: remove content::BluetoothChooser::RemoveDevice() function Created 3 years, 9 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 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 10 matching lines...) Expand all
21 // content::BluetoothChooser: 21 // content::BluetoothChooser:
22 bool CanAskForScanningPermission() override; 22 bool CanAskForScanningPermission() override;
23 void SetAdapterPresence(AdapterPresence presence) override; 23 void SetAdapterPresence(AdapterPresence presence) override;
24 void ShowDiscoveryState(DiscoveryState state) override; 24 void ShowDiscoveryState(DiscoveryState state) override;
25 void AddOrUpdateDevice(const std::string& device_id, 25 void AddOrUpdateDevice(const std::string& device_id,
26 bool should_update_name, 26 bool should_update_name,
27 const base::string16& device_name, 27 const base::string16& device_name,
28 bool is_gatt_connected, 28 bool is_gatt_connected,
29 bool is_paired, 29 bool is_paired,
30 int signal_strength_level) override; 30 int signal_strength_level) override;
31 void RemoveDevice(const std::string& device_id) override;
32 31
33 // Report the dialog's result. 32 // Report the dialog's result.
34 void OnDialogFinished(JNIEnv* env, 33 void OnDialogFinished(JNIEnv* env,
35 const base::android::JavaParamRef<jobject>& obj, 34 const base::android::JavaParamRef<jobject>& obj,
36 jint event_type, 35 jint event_type,
37 const base::android::JavaParamRef<jstring>& device_id); 36 const base::android::JavaParamRef<jstring>& device_id);
38 37
39 // Notify bluetooth stack that the search needs to be re-issued. 38 // Notify bluetooth stack that the search needs to be re-issued.
40 void RestartSearch(); 39 void RestartSearch();
41 // Calls RestartSearch(). Unused JNI parameters enable calls from Java. 40 // Calls RestartSearch(). Unused JNI parameters enable calls from Java.
(...skipping 13 matching lines...) Expand all
55 54
56 private: 55 private:
57 void OpenURL(const char* url); 56 void OpenURL(const char* url);
58 base::android::ScopedJavaGlobalRef<jobject> java_dialog_; 57 base::android::ScopedJavaGlobalRef<jobject> java_dialog_;
59 58
60 content::WebContents* web_contents_; 59 content::WebContents* web_contents_;
61 BluetoothChooser::EventHandler event_handler_; 60 BluetoothChooser::EventHandler event_handler_;
62 }; 61 };
63 62
64 #endif // CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ 63 #endif // CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698