| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void SetTextZoomFactor(float factor); | 73 void SetTextZoomFactor(float factor); |
| 74 | 74 |
| 75 void ResetScrollAndScaleState(); | 75 void ResetScrollAndScaleState(); |
| 76 | 76 |
| 77 // Sets the initial page scale. This overrides initial scale set by | 77 // Sets the initial page scale. This overrides initial scale set by |
| 78 // the meta viewport tag. | 78 // the meta viewport tag. |
| 79 void SetInitialPageScale(double page_scale_factor); | 79 void SetInitialPageScale(double page_scale_factor); |
| 80 void SetBackgroundColor(SkColor c); | 80 void SetBackgroundColor(SkColor c); |
| 81 void SetJsOnlineProperty(bool network_up); | 81 void SetJsOnlineProperty(bool network_up); |
| 82 | 82 |
| 83 void SmoothScroll(int target_x, int target_y, long duration_ms); |
| 84 |
| 83 private: | 85 private: |
| 84 // content::WebContentsObserver implementation. | 86 // content::WebContentsObserver implementation. |
| 85 void RenderViewCreated(content::RenderViewHost* view_host) override; | 87 void RenderViewCreated(content::RenderViewHost* view_host) override; |
| 86 void RenderProcessGone(base::TerminationStatus status) override; | 88 void RenderProcessGone(base::TerminationStatus status) override; |
| 87 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, | 89 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, |
| 88 const content::LoadCommittedDetails& details, | 90 const content::LoadCommittedDetails& details, |
| 89 const content::FrameNavigateParams& params) override; | 91 const content::FrameNavigateParams& params) override; |
| 90 bool OnMessageReceived(const IPC::Message& message) override; | 92 bool OnMessageReceived(const IPC::Message& message) override; |
| 91 | 93 |
| 92 void OnDocumentHasImagesResponse(int msg_id, bool has_images); | 94 void OnDocumentHasImagesResponse(int msg_id, bool has_images); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 108 AwHitTestData last_hit_test_data_; | 110 AwHitTestData last_hit_test_data_; |
| 109 | 111 |
| 110 bool has_new_hit_test_data_; | 112 bool has_new_hit_test_data_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 114 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace android_webview | 117 } // namespace android_webview |
| 116 | 118 |
| 117 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 119 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
| OLD | NEW |