| OLD | NEW |
| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 void AddMessageToDevToolsConsole(JNIEnv* env, | 109 void AddMessageToDevToolsConsole(JNIEnv* env, |
| 110 jobject jobj, | 110 jobject jobj, |
| 111 jint level, | 111 jint level, |
| 112 jstring message); | 112 jstring message); |
| 113 | 113 |
| 114 jboolean HasAccessedInitialDocument(JNIEnv* env, jobject jobj); | 114 jboolean HasAccessedInitialDocument(JNIEnv* env, jobject jobj); |
| 115 | 115 |
| 116 jint GetThemeColor(JNIEnv* env, jobject obj); | 116 jint GetThemeColor(JNIEnv* env, jobject obj); |
| 117 | 117 |
| 118 void RequestAXTreeSnapshot(JNIEnv* env, |
| 119 jobject obj, |
| 120 jobject callback); |
| 118 private: | 121 private: |
| 119 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | 122 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
| 120 | 123 |
| 121 WebContents* web_contents_; | 124 WebContents* web_contents_; |
| 122 NavigationControllerAndroid navigation_controller_; | 125 NavigationControllerAndroid navigation_controller_; |
| 123 base::android::ScopedJavaGlobalRef<jobject> obj_; | 126 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 124 | 127 |
| 125 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 128 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 126 | 129 |
| 127 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 130 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 } // namespace content | 133 } // namespace content |
| 131 | 134 |
| 132 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 135 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |