| 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" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 13 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 14 #include "ui/gfx/size.h" |
| 14 | 15 |
| 15 class GURL; | 16 class GURL; |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 struct FrameNavigateParams; | 19 struct FrameNavigateParams; |
| 19 struct LoadCommittedDetails; | 20 struct LoadCommittedDetails; |
| 20 } // namespace content | 21 } // namespace content |
| 21 | 22 |
| 22 namespace android_webview { | 23 namespace android_webview { |
| 23 | 24 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void MarkHitTestDataRead(); | 60 void MarkHitTestDataRead(); |
| 60 | 61 |
| 61 // Return |last_hit_test_data_|. Note that this is unavoidably racy; | 62 // Return |last_hit_test_data_|. Note that this is unavoidably racy; |
| 62 // the corresponding public WebView API is as well. | 63 // the corresponding public WebView API is as well. |
| 63 const AwHitTestData& GetLastHitTestData() const; | 64 const AwHitTestData& GetLastHitTestData() const; |
| 64 | 65 |
| 65 // Sets the zoom level for text only. Used in layout modes other than | 66 // Sets the zoom level for text only. Used in layout modes other than |
| 66 // Text Autosizing. | 67 // Text Autosizing. |
| 67 void SetTextZoomLevel(double level); | 68 void SetTextZoomLevel(double level); |
| 68 | 69 |
| 70 void EnableFixedLayoutOverride(const gfx::Size& size); |
| 71 void DisableFixedLayoutOverride(); |
| 72 |
| 69 void ResetScrollAndScaleState(); | 73 void ResetScrollAndScaleState(); |
| 70 | 74 |
| 71 // Sets the initial page scale. This overrides initial scale set by | 75 // Sets the initial page scale. This overrides initial scale set by |
| 72 // the meta viewport tag. | 76 // the meta viewport tag. |
| 73 void SetInitialPageScale(double page_scale_factor); | 77 void SetInitialPageScale(double page_scale_factor); |
| 74 void SetBackgroundColor(SkColor c); | 78 void SetBackgroundColor(SkColor c); |
| 75 void SetJsOnlineProperty(bool network_up); | 79 void SetJsOnlineProperty(bool network_up); |
| 76 | 80 |
| 77 private: | 81 private: |
| 78 // content::WebContentsObserver implementation. | 82 // content::WebContentsObserver implementation. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 101 AwHitTestData last_hit_test_data_; | 105 AwHitTestData last_hit_test_data_; |
| 102 | 106 |
| 103 bool has_new_hit_test_data_; | 107 bool has_new_hit_test_data_; |
| 104 | 108 |
| 105 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 109 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
| 106 }; | 110 }; |
| 107 | 111 |
| 108 } // namespace android_webview | 112 } // namespace android_webview |
| 109 | 113 |
| 110 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 114 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
| OLD | NEW |