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

Side by Side Diff: chrome/browser/android/find_in_page/find_in_page_bridge.h

Issue 633743002: Add FindInPageBridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698