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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 24228003: Upstream ShouldOverrideUrlLoading changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, 69 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
70 const std::string& host, 70 const std::string& host,
71 const std::string& realm); 71 const std::string& realm);
72 72
73 // Methods called from Java. 73 // Methods called from Java.
74 void SetJavaPeers(JNIEnv* env, 74 void SetJavaPeers(JNIEnv* env,
75 jobject obj, 75 jobject obj,
76 jobject aw_contents, 76 jobject aw_contents,
77 jobject web_contents_delegate, 77 jobject web_contents_delegate,
78 jobject contents_client_bridge, 78 jobject contents_client_bridge,
79 jobject io_thread_client, 79 jobject io_thread_client);
80 jobject intercept_navigation_delegate);
81 jint GetWebContents(JNIEnv* env, jobject obj); 80 jint GetWebContents(JNIEnv* env, jobject obj);
82 jint GetAwContentsClientBridge(JNIEnv* env, jobject obj); 81 jint GetAwContentsClientBridge(JNIEnv* env, jobject obj);
83 82
84 void Destroy(JNIEnv* env, jobject obj); 83 void Destroy(JNIEnv* env, jobject obj);
85 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); 84 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message);
86 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); 85 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback);
87 void AddVisitedLinks(JNIEnv* env, jobject obj, jobjectArray jvisited_links); 86 void AddVisitedLinks(JNIEnv* env, jobject obj, jobjectArray jvisited_links);
88 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate( 87 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate(
89 JNIEnv* env, jobject obj); 88 JNIEnv* env, jobject obj);
90 void RequestNewHitTestDataAt(JNIEnv* env, jobject obj, jint x, jint y); 89 void RequestNewHitTestDataAt(JNIEnv* env, jobject obj, jint x, jint y);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual void OnReceivedIcon(const GURL& icon_url, 141 virtual void OnReceivedIcon(const GURL& icon_url,
143 const SkBitmap& bitmap) OVERRIDE; 142 const SkBitmap& bitmap) OVERRIDE;
144 virtual void OnReceivedTouchIconUrl(const std::string& url, 143 virtual void OnReceivedTouchIconUrl(const std::string& url,
145 const bool precomposed) OVERRIDE; 144 const bool precomposed) OVERRIDE;
146 145
147 // AwRenderViewHostExtClient implementation. 146 // AwRenderViewHostExtClient implementation.
148 virtual void OnWebLayoutPageScaleFactorChanged( 147 virtual void OnWebLayoutPageScaleFactorChanged(
149 float page_scale_factor) OVERRIDE; 148 float page_scale_factor) OVERRIDE;
150 virtual void OnWebLayoutContentsSizeChanged( 149 virtual void OnWebLayoutContentsSizeChanged(
151 const gfx::Size& contents_size) OVERRIDE; 150 const gfx::Size& contents_size) OVERRIDE;
151 virtual bool OnShouldOverrideUrlLoading(const base::string16& url) OVERRIDE;
152 152
153 // BrowserViewRenderer::Client implementation. 153 // BrowserViewRenderer::Client implementation.
154 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; 154 virtual bool RequestDrawGL(jobject canvas) OVERRIDE;
155 virtual void PostInvalidate() OVERRIDE; 155 virtual void PostInvalidate() OVERRIDE;
156 virtual void UpdateGlobalVisibleRect() OVERRIDE; 156 virtual void UpdateGlobalVisibleRect() OVERRIDE;
157 virtual void OnNewPicture() OVERRIDE; 157 virtual void OnNewPicture() OVERRIDE;
158 virtual gfx::Point GetLocationOnScreen() OVERRIDE; 158 virtual gfx::Point GetLocationOnScreen() OVERRIDE;
159 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; 159 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE;
160 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; 160 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE;
161 161
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 std::list<OriginCallback> pending_geolocation_prompts_; 201 std::list<OriginCallback> pending_geolocation_prompts_;
202 202
203 DISALLOW_COPY_AND_ASSIGN(AwContents); 203 DISALLOW_COPY_AND_ASSIGN(AwContents);
204 }; 204 };
205 205
206 bool RegisterAwContents(JNIEnv* env); 206 bool RegisterAwContents(JNIEnv* env);
207 207
208 } // namespace android_webview 208 } // namespace android_webview
209 209
210 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 210 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698