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

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

Issue 16255010: Hookup android_webview scroll offset delegation to Java side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 6 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 | Annotate | Revision Log
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const bool precomposed) OVERRIDE; 135 const bool precomposed) OVERRIDE;
136 136
137 // AwRenderViewHostExtClient implementation. 137 // AwRenderViewHostExtClient implementation.
138 virtual void OnPageScaleFactorChanged(float page_scale_factor) OVERRIDE; 138 virtual void OnPageScaleFactorChanged(float page_scale_factor) OVERRIDE;
139 139
140 // BrowserViewRenderer::Client implementation. 140 // BrowserViewRenderer::Client implementation.
141 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; 141 virtual bool RequestDrawGL(jobject canvas) OVERRIDE;
142 virtual void Invalidate() OVERRIDE; 142 virtual void Invalidate() OVERRIDE;
143 virtual void OnNewPicture() OVERRIDE; 143 virtual void OnNewPicture() OVERRIDE;
144 virtual gfx::Point GetLocationOnScreen() OVERRIDE; 144 virtual gfx::Point GetLocationOnScreen() OVERRIDE;
145 virtual void ScrollContainerViewTo(gfx::Vector2dF new_value) OVERRIDE;
145 146
146 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 147 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
147 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); 148 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending);
148 jint ReleasePopupWebContents(JNIEnv* env, jobject obj); 149 jint ReleasePopupWebContents(JNIEnv* env, jobject obj);
149 150
151 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y);
152
150 void SetSaveFormData(bool enabled); 153 void SetSaveFormData(bool enabled);
151 154
152 private: 155 private:
153 void SetWebContents(content::WebContents* web_contents); 156 void SetWebContents(content::WebContents* web_contents);
154 void InitAutofillIfNecessary(bool enabled); 157 void InitAutofillIfNecessary(bool enabled);
155 158
156 JavaObjectWeakGlobalRef java_ref_; 159 JavaObjectWeakGlobalRef java_ref_;
157 scoped_ptr<content::WebContents> web_contents_; 160 scoped_ptr<content::WebContents> web_contents_;
158 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 161 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
159 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; 162 scoped_ptr<AwContentsClientBridge> contents_client_bridge_;
(...skipping 11 matching lines...) Expand all
171 std::list<OriginCallback> pending_geolocation_prompts_; 174 std::list<OriginCallback> pending_geolocation_prompts_;
172 175
173 DISALLOW_COPY_AND_ASSIGN(AwContents); 176 DISALLOW_COPY_AND_ASSIGN(AwContents);
174 }; 177 };
175 178
176 bool RegisterAwContents(JNIEnv* env); 179 bool RegisterAwContents(JNIEnv* env);
177 180
178 } // namespace android_webview 181 } // namespace android_webview
179 182
180 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 183 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698