| OLD | NEW |
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void MarkHitTestDataRead(); | 62 void MarkHitTestDataRead(); |
| 63 | 63 |
| 64 // Return |last_hit_test_data_|. Note that this is unavoidably racy; | 64 // Return |last_hit_test_data_|. Note that this is unavoidably racy; |
| 65 // the corresponding public WebView API is as well. | 65 // the corresponding public WebView API is as well. |
| 66 const AwHitTestData& GetLastHitTestData() const; | 66 const AwHitTestData& GetLastHitTestData() const; |
| 67 | 67 |
| 68 // Sets the zoom factor for text only. Used in layout modes other than | 68 // Sets the zoom factor for text only. Used in layout modes other than |
| 69 // Text Autosizing. | 69 // Text Autosizing. |
| 70 void SetTextZoomFactor(float factor); | 70 void SetTextZoomFactor(float factor); |
| 71 | 71 |
| 72 void SetFixedLayoutSize(const gfx::Size& size); | |
| 73 | |
| 74 void ResetScrollAndScaleState(); | 72 void ResetScrollAndScaleState(); |
| 75 | 73 |
| 76 // Sets the initial page scale. This overrides initial scale set by | 74 // Sets the initial page scale. This overrides initial scale set by |
| 77 // the meta viewport tag. | 75 // the meta viewport tag. |
| 78 void SetInitialPageScale(double page_scale_factor); | 76 void SetInitialPageScale(double page_scale_factor); |
| 79 void SetBackgroundColor(SkColor c); | 77 void SetBackgroundColor(SkColor c); |
| 80 void SetJsOnlineProperty(bool network_up); | 78 void SetJsOnlineProperty(bool network_up); |
| 81 | 79 |
| 82 void SendCheckRenderThreadResponsiveness(); | 80 void SendCheckRenderThreadResponsiveness(); |
| 83 | 81 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 109 AwHitTestData last_hit_test_data_; | 107 AwHitTestData last_hit_test_data_; |
| 110 | 108 |
| 111 bool has_new_hit_test_data_; | 109 bool has_new_hit_test_data_; |
| 112 | 110 |
| 113 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 111 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
| 114 }; | 112 }; |
| 115 | 113 |
| 116 } // namespace android_webview | 114 } // namespace android_webview |
| 117 | 115 |
| 118 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 116 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
| OLD | NEW |