OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_ANDROID_FIND_IN_PAGE_FIND_IN_PAGE_BRIDGE_H_ | |
6 #define CHROME_BROWSER_ANDROID_FIND_IN_PAGE_FIND_IN_PAGE_BRIDGE_H_ | |
7 | |
8 #include <jni.h> | |
9 | |
10 #include "base/android/jni_weak_ref.h" | |
11 #include "content/public/browser/web_contents.h" | |
12 | |
13 class FindInPageBridge { | |
14 public: | |
15 FindInPageBridge(JNIEnv* env, jobject obj, jobject j_web_contents); | |
16 void Destroy(JNIEnv*, jobject); | |
17 | |
18 static bool RegisterFindInPageBridge(JNIEnv* env); | |
Ted C
2014/10/07 20:49:49
I would probably put the static at the bottom.
aurimas (slooooooooow)
2014/10/07 23:28:25
Done.
| |
19 | |
20 void StartFinding(JNIEnv* env, | |
21 jobject obj, | |
22 jstring search_string, | |
23 jboolean forward_direction, | |
24 jboolean case_sensitive); | |
25 | |
26 void StopFinding(JNIEnv* env, jobject obj); | |
27 | |
28 base::android::ScopedJavaLocalRef<jstring> GetPreviousFindText(JNIEnv* env, | |
29 jobject obj); | |
30 | |
31 void RequestFindMatchRects(JNIEnv* env, jobject obj, jint current_version); | |
32 | |
33 void ActivateNearestFindResult(JNIEnv* env, jobject obj, jfloat x, jfloat y); | |
34 | |
35 private: | |
36 content::WebContents* web_contents_; | |
37 JavaObjectWeakGlobalRef weak_java_ref_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(FindInPageBridge); | |
40 }; | |
41 | |
42 #endif // CHROME_BROWSER_ANDROID_FIND_IN_PAGE_FIND_IN_PAGE_BRIDGE_H_ | |
OLD | NEW |