| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // the meta viewport tag. | 75 // the meta viewport tag. |
| 76 void SetInitialPageScale(double page_scale_factor); | 76 void SetInitialPageScale(double page_scale_factor); |
| 77 void SetBackgroundColor(SkColor c); | 77 void SetBackgroundColor(SkColor c); |
| 78 void SetJsOnlineProperty(bool network_up); | 78 void SetJsOnlineProperty(bool network_up); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 // content::WebContentsObserver implementation. | 81 // content::WebContentsObserver implementation. |
| 82 virtual void RenderViewCreated(content::RenderViewHost* view_host) override; | 82 virtual void RenderViewCreated(content::RenderViewHost* view_host) override; |
| 83 virtual void RenderProcessGone(base::TerminationStatus status) override; | 83 virtual void RenderProcessGone(base::TerminationStatus status) override; |
| 84 virtual void DidNavigateAnyFrame( | 84 virtual void DidNavigateAnyFrame( |
| 85 content::RenderFrameHost* render_frame_host, |
| 85 const content::LoadCommittedDetails& details, | 86 const content::LoadCommittedDetails& details, |
| 86 const content::FrameNavigateParams& params) override; | 87 const content::FrameNavigateParams& params) override; |
| 87 virtual bool OnMessageReceived(const IPC::Message& message) override; | 88 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 88 | 89 |
| 89 void OnDocumentHasImagesResponse(int msg_id, bool has_images); | 90 void OnDocumentHasImagesResponse(int msg_id, bool has_images); |
| 90 void OnUpdateHitTestData(const AwHitTestData& hit_test_data); | 91 void OnUpdateHitTestData(const AwHitTestData& hit_test_data); |
| 91 void OnPageScaleFactorChanged(float page_scale_factor); | 92 void OnPageScaleFactorChanged(float page_scale_factor); |
| 92 void OnContentsSizeChanged(const gfx::Size& contents_size); | 93 void OnContentsSizeChanged(const gfx::Size& contents_size); |
| 93 | 94 |
| 94 bool IsRenderViewReady() const; | 95 bool IsRenderViewReady() const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 105 AwHitTestData last_hit_test_data_; | 106 AwHitTestData last_hit_test_data_; |
| 106 | 107 |
| 107 bool has_new_hit_test_data_; | 108 bool has_new_hit_test_data_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 110 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace android_webview | 113 } // namespace android_webview |
| 113 | 114 |
| 114 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 115 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
| OLD | NEW |