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

Side by Side Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.h

Issue 14234002: [Android WebView] Never turn off viewport and fixed layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Jonathan's comment addressed Created 7 years, 8 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 | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_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_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
7 7
8 #include "content/public/browser/web_contents_observer.h" 8 #include "content/public/browser/web_contents_observer.h"
9 9
10 #include "android_webview/common/aw_hit_test_data.h" 10 #include "android_webview/common/aw_hit_test_data.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void RequestNewHitTestDataAt(int view_x, int view_y); 43 void RequestNewHitTestDataAt(int view_x, int view_y);
44 44
45 // Optimization to avoid unnecessary Java object creation on hit test. 45 // Optimization to avoid unnecessary Java object creation on hit test.
46 bool HasNewHitTestData() const; 46 bool HasNewHitTestData() const;
47 void MarkHitTestDataRead(); 47 void MarkHitTestDataRead();
48 48
49 // Return |last_hit_test_data_|. Note that this is unavoidably racy; 49 // Return |last_hit_test_data_|. Note that this is unavoidably racy;
50 // the corresponding public WebView API is as well. 50 // the corresponding public WebView API is as well.
51 const AwHitTestData& GetLastHitTestData() const; 51 const AwHitTestData& GetLastHitTestData() const;
52 52
53 // Set whether fixed layout mode is enabled. Must be updated together
54 // with WebSettings.viewport_enabled.
55 // TODO(mnaganov): Leave only one setting. See the comments on
56 // https://bugs.webkit.org/show_bug.cgi?id=109946
57 void SetEnableFixedLayoutMode(bool enable);
58
59 // Sets the zoom level for text only. Used in layout modes other than 53 // Sets the zoom level for text only. Used in layout modes other than
60 // Text Autosizing. 54 // Text Autosizing.
61 void SetTextZoomLevel(double level); 55 void SetTextZoomLevel(double level);
62 56
63 void ResetScrollAndScaleState(); 57 void ResetScrollAndScaleState();
64 58
65 // Sets the initial page scale. This overrides initial scale set by 59 // Sets the initial page scale. This overrides initial scale set by
66 // the meta viewport tag. 60 // the meta viewport tag.
67 void SetInitialPageScale(double page_scale_factor); 61 void SetInitialPageScale(double page_scale_factor);
68 62
(...skipping 19 matching lines...) Expand all
88 AwHitTestData last_hit_test_data_; 82 AwHitTestData last_hit_test_data_;
89 83
90 bool has_new_hit_test_data_; 84 bool has_new_hit_test_data_;
91 85
92 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); 86 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt);
93 }; 87 };
94 88
95 } // namespace android_webview 89 } // namespace android_webview
96 90
97 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 91 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698