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

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

Issue 418883002: Simplify wrap_contents mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs Created 6 years, 4 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; 205 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE;
206 206
207 const BrowserViewRenderer* GetBrowserViewRenderer() const; 207 const BrowserViewRenderer* GetBrowserViewRenderer() const;
208 208
209 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 209 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
210 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); 210 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending);
211 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); 211 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj);
212 212
213 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); 213 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y);
214 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); 214 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale);
215 void SetFixedLayoutSize(JNIEnv* env,
216 jobject obj,
217 jint width_dip,
218 jint height_dip);
219 void SetSaveFormData(bool enabled); 215 void SetSaveFormData(bool enabled);
220 216
221 // Sets the java client 217 // Sets the java client
222 void SetAwAutofillClient(jobject client); 218 void SetAwAutofillClient(jobject client);
223 219
224 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
225 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); 221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible);
226 222
227 private: 223 private:
228 void InitDataReductionProxyIfNecessary(); 224 void InitDataReductionProxyIfNecessary();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 GLViewRendererManager::Key renderer_manager_key_; 256 GLViewRendererManager::Key renderer_manager_key_;
261 257
262 DISALLOW_COPY_AND_ASSIGN(AwContents); 258 DISALLOW_COPY_AND_ASSIGN(AwContents);
263 }; 259 };
264 260
265 bool RegisterAwContents(JNIEnv* env); 261 bool RegisterAwContents(JNIEnv* env);
266 262
267 } // namespace android_webview 263 } // namespace android_webview
268 264
269 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 265 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698