| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void SetBackgroundColor(SkColor c); | 81 void SetBackgroundColor(SkColor c); |
| 82 void SetJsOnlineProperty(bool network_up); | 82 void SetJsOnlineProperty(bool network_up); |
| 83 | 83 |
| 84 void SmoothScroll(int target_x, int target_y, long duration_ms); | 84 void SmoothScroll(int target_x, int target_y, long duration_ms); |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 // content::WebContentsObserver implementation. | 87 // content::WebContentsObserver implementation. |
| 88 void RenderViewCreated(content::RenderViewHost* view_host) override; | 88 void RenderViewCreated(content::RenderViewHost* view_host) override; |
| 89 void RenderViewHostChanged(content::RenderViewHost* old_host, | 89 void RenderViewHostChanged(content::RenderViewHost* old_host, |
| 90 content::RenderViewHost* new_host) override; | 90 content::RenderViewHost* new_host) override; |
| 91 void RenderFrameCreated(content::RenderFrameHost* frame_host) override; |
| 91 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, | 92 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, |
| 92 const content::LoadCommittedDetails& details, | 93 const content::LoadCommittedDetails& details, |
| 93 const content::FrameNavigateParams& params) override; | 94 const content::FrameNavigateParams& params) override; |
| 94 void OnPageScaleFactorChanged(float page_scale_factor) override; | 95 void OnPageScaleFactorChanged(float page_scale_factor) override; |
| 95 bool OnMessageReceived(const IPC::Message& message, | 96 bool OnMessageReceived(const IPC::Message& message, |
| 96 content::RenderFrameHost* render_frame_host) override; | 97 content::RenderFrameHost* render_frame_host) override; |
| 97 | 98 |
| 98 void OnDocumentHasImagesResponse(content::RenderFrameHost* render_frame_host, | 99 void OnDocumentHasImagesResponse(content::RenderFrameHost* render_frame_host, |
| 99 int msg_id, | 100 int msg_id, |
| 100 bool has_images); | 101 bool has_images); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 120 AwHitTestData last_hit_test_data_; | 121 AwHitTestData last_hit_test_data_; |
| 121 | 122 |
| 122 bool has_new_hit_test_data_; | 123 bool has_new_hit_test_data_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 125 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace android_webview | 128 } // namespace android_webview |
| 128 | 129 |
| 129 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 130 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
| OLD | NEW |