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

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

Issue 1745463002: bluetooth: android: register for adapter on/off events followup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge tip of tree with perja's commit. Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/android/bluetooth_chooser_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 const base::string16& device_name) override; 30 const base::string16& device_name) override;
31 void RemoveDevice(const std::string& device_id) override; 31 void RemoveDevice(const std::string& device_id) override;
32 32
33 // Report the dialog's result. 33 // Report the dialog's result.
34 void OnDialogFinished(JNIEnv* env, 34 void OnDialogFinished(JNIEnv* env,
35 const base::android::JavaParamRef<jobject>& obj, 35 const base::android::JavaParamRef<jobject>& obj,
36 jint event_type, 36 jint event_type,
37 const base::android::JavaParamRef<jstring>& device_id); 37 const base::android::JavaParamRef<jstring>& device_id);
38 38
39 // Notify bluetooth stack that the search needs to be re-issued. 39 // Notify bluetooth stack that the search needs to be re-issued.
40 void RestartSearch(JNIEnv* env, 40 void RestartSearch();
41 const base::android::JavaParamRef<jobject>& obj); 41 // Calls RestartSearch(). Unused JNI parameters enable calls from Java.
42 void RestartSearch(JNIEnv*, const base::android::JavaParamRef<jobject>&);
42 43
43 void ShowBluetoothOverviewLink( 44 void ShowBluetoothOverviewLink(
44 JNIEnv* env, 45 JNIEnv* env,
45 const base::android::JavaParamRef<jobject>& obj); 46 const base::android::JavaParamRef<jobject>& obj);
46 void ShowBluetoothAdapterOffLink( 47 void ShowBluetoothAdapterOffLink(
47 JNIEnv* env, 48 JNIEnv* env,
48 const base::android::JavaParamRef<jobject>& obj); 49 const base::android::JavaParamRef<jobject>& obj);
49 void ShowNeedLocationPermissionLink( 50 void ShowNeedLocationPermissionLink(
50 JNIEnv* env, 51 JNIEnv* env,
51 const base::android::JavaParamRef<jobject>& obj); 52 const base::android::JavaParamRef<jobject>& obj);
52 53
53 static bool Register(JNIEnv* env); 54 static bool Register(JNIEnv* env);
54 55
55 private: 56 private:
56 void OpenURL(const char* url); 57 void OpenURL(const char* url);
57 base::android::ScopedJavaGlobalRef<jobject> java_dialog_; 58 base::android::ScopedJavaGlobalRef<jobject> java_dialog_;
58 59
59 content::WebContents* web_contents_; 60 content::WebContents* web_contents_;
60 BluetoothChooser::EventHandler event_handler_; 61 BluetoothChooser::EventHandler event_handler_;
61 }; 62 };
62 63
63 #endif // CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_ 64 #endif // CHROME_BROWSER_UI_ANDROID_BLUETOOTH_CHOOSER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/android/bluetooth_chooser_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698