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