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

Side by Side Diff: content/browser/web_contents/web_contents_android.h

Issue 690083005: [Android] Expose WebContents IsLoading methods to java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | content/browser/web_contents/web_contents_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 23 matching lines...) Expand all
34 34
35 WebContents* web_contents() const { return web_contents_; } 35 WebContents* web_contents() const { return web_contents_; }
36 36
37 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); 37 base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
38 38
39 // Methods called from Java 39 // Methods called from Java
40 base::android::ScopedJavaLocalRef<jstring> GetTitle(JNIEnv* env, 40 base::android::ScopedJavaLocalRef<jstring> GetTitle(JNIEnv* env,
41 jobject obj) const; 41 jobject obj) const;
42 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL(JNIEnv* env, 42 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL(JNIEnv* env,
43 jobject obj) const; 43 jobject obj) const;
44
45 bool IsLoading(JNIEnv* env, jobject obj) const;
46 bool IsLoadingToDifferentDocument(JNIEnv* env, jobject obj) const;
47
44 void Stop(JNIEnv* env, jobject obj); 48 void Stop(JNIEnv* env, jobject obj);
45 jint GetBackgroundColor(JNIEnv* env, jobject obj); 49 jint GetBackgroundColor(JNIEnv* env, jobject obj);
46 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; 50 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const;
47 jboolean IsIncognito(JNIEnv* env, jobject obj); 51 jboolean IsIncognito(JNIEnv* env, jobject obj);
48 52
49 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); 53 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj);
50 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); 54 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj);
51 void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup); 55 void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup);
52 void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector); 56 void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector);
53 void ClearNavigationTransitionData(JNIEnv* env, jobject jobj); 57 void ClearNavigationTransitionData(JNIEnv* env, jobject jobj);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 WebContents* web_contents_; 101 WebContents* web_contents_;
98 NavigationControllerAndroid navigation_controller_; 102 NavigationControllerAndroid navigation_controller_;
99 base::android::ScopedJavaGlobalRef<jobject> obj_; 103 base::android::ScopedJavaGlobalRef<jobject> obj_;
100 104
101 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 105 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
102 }; 106 };
103 107
104 } // namespace content 108 } // namespace content
105 109
106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698