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

Side by Side Diff: android_webview/renderer/aw_render_view_ext.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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_AW_RENDER_VIEW_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 void OnDocumentHasImagesRequest(int id); 43 void OnDocumentHasImagesRequest(int id);
44 44
45 void OnDoHitTest(int view_x, int view_y); 45 void OnDoHitTest(int view_x, int view_y);
46 46
47 void OnSetTextZoomLevel(double zoom_level); 47 void OnSetTextZoomLevel(double zoom_level);
48 48
49 void OnResetScrollAndScaleState(); 49 void OnResetScrollAndScaleState();
50 50
51 void OnSetInitialPageScale(double page_scale_factor); 51 void OnSetInitialPageScale(double page_scale_factor);
52
53 void OnSetAutoResizeMode(bool enable, int width);
54
52 void OnSetBackgroundColor(SkColor c); 55 void OnSetBackgroundColor(SkColor c);
53 56
54 void UpdatePageScaleFactor(); 57 void UpdatePageScaleFactor();
55 58
56 // WebKit::WebPermissionClient implementation. 59 // WebKit::WebPermissionClient implementation.
57 virtual bool allowDisplayingInsecureContent( 60 virtual bool allowDisplayingInsecureContent(
58 WebKit::WebFrame* frame, 61 WebKit::WebFrame* frame,
59 bool enabled_per_settings, 62 bool enabled_per_settings,
60 const WebKit::WebSecurityOrigin& origin, 63 const WebKit::WebSecurityOrigin& origin,
61 const WebKit::WebURL& url) OVERRIDE; 64 const WebKit::WebURL& url) OVERRIDE;
62 virtual bool allowRunningInsecureContent( 65 virtual bool allowRunningInsecureContent(
63 WebKit::WebFrame* frame, 66 WebKit::WebFrame* frame,
64 bool enabled_per_settings, 67 bool enabled_per_settings,
65 const WebKit::WebSecurityOrigin& origin, 68 const WebKit::WebSecurityOrigin& origin,
66 const WebKit::WebURL& url) OVERRIDE; 69 const WebKit::WebURL& url) OVERRIDE;
67 70
68 bool capture_picture_enabled_; 71 bool capture_picture_enabled_;
69 72
70 float page_scale_factor_; 73 float page_scale_factor_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); 75 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt);
73 }; 76 };
74 77
75 } // namespace android_webview 78 } // namespace android_webview
76 79
77 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 80 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698