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

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

Issue 23583025: [android_webview] Use auto-sizing for webviews in wrap content mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test 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 | 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
162 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 162 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
163 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); 163 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending);
164 jint ReleasePopupAwContents(JNIEnv* env, jobject obj); 164 jint ReleasePopupAwContents(JNIEnv* env, jobject obj);
165 165
166 void ScrollTo(JNIEnv* env, jobject obj, jint xPix, jint yPix); 166 void ScrollTo(JNIEnv* env, jobject obj, jint xPix, jint yPix);
167 void SetDipScale(JNIEnv* env, jobject obj, jfloat dipScale); 167 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale);
168 void SetDisplayedPageScaleFactor(JNIEnv* env, 168 void SetDisplayedPageScaleFactor(JNIEnv* env,
169 jobject obj, 169 jobject obj,
170 jfloat pageScaleFactor); 170 jfloat page_scale_factor);
171 void SetAutoResizeMode(JNIEnv* env,
172 jobject obj,
173 jboolean enabled,
174 jint width_dip);
171 175
172 void SetSaveFormData(bool enabled); 176 void SetSaveFormData(bool enabled);
173 177
174 // Sets the java delegate 178 // Sets the java delegate
175 void SetAwAutofillManagerDelegate(jobject delegate); 179 void SetAwAutofillManagerDelegate(jobject delegate);
176 180
177 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 181 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
178 182
179 private: 183 private:
180 void InitAutofillIfNecessary(bool enabled); 184 void InitAutofillIfNecessary(bool enabled);
(...skipping 16 matching lines...) Expand all
197 std::list<OriginCallback> pending_geolocation_prompts_; 201 std::list<OriginCallback> pending_geolocation_prompts_;
198 202
199 DISALLOW_COPY_AND_ASSIGN(AwContents); 203 DISALLOW_COPY_AND_ASSIGN(AwContents);
200 }; 204 };
201 205
202 bool RegisterAwContents(JNIEnv* env); 206 bool RegisterAwContents(JNIEnv* env);
203 207
204 } // namespace android_webview 208 } // namespace android_webview
205 209
206 #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