| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void SetTextZoomLevel(double level); | 66 void SetTextZoomLevel(double level); |
| 67 | 67 |
| 68 void ResetScrollAndScaleState(); | 68 void ResetScrollAndScaleState(); |
| 69 | 69 |
| 70 // Sets the initial page scale. This overrides initial scale set by | 70 // Sets the initial page scale. This overrides initial scale set by |
| 71 // the meta viewport tag. | 71 // the meta viewport tag. |
| 72 void SetInitialPageScale(double page_scale_factor); | 72 void SetInitialPageScale(double page_scale_factor); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 // content::WebContentsObserver implementation. | 75 // content::WebContentsObserver implementation. |
| 76 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 76 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
| 77 virtual void DidNavigateAnyFrame( | 77 virtual void DidNavigateAnyFrame( |
| 78 const content::LoadCommittedDetails& details, | 78 const content::LoadCommittedDetails& details, |
| 79 const content::FrameNavigateParams& params) OVERRIDE; | 79 const content::FrameNavigateParams& params) OVERRIDE; |
| 80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 81 | 81 |
| 82 void OnDocumentHasImagesResponse(int msg_id, bool has_images); | 82 void OnDocumentHasImagesResponse(int msg_id, bool has_images); |
| 83 void OnUpdateHitTestData(const AwHitTestData& hit_test_data); | 83 void OnUpdateHitTestData(const AwHitTestData& hit_test_data); |
| 84 void OnPageScaleFactorChanged(float page_scale_factor); | 84 void OnPageScaleFactorChanged(float page_scale_factor); |
| 85 | 85 |
| 86 bool IsRenderViewReady() const; | 86 bool IsRenderViewReady() const; |
| 87 | 87 |
| 88 AwRenderViewHostExtClient* client_; | 88 AwRenderViewHostExtClient* client_; |
| 89 | 89 |
| 90 std::map<int, DocumentHasImagesResult> pending_document_has_images_requests_; | 90 std::map<int, DocumentHasImagesResult> pending_document_has_images_requests_; |
| 91 | 91 |
| 92 // Master copy of hit test data on the browser side. This is updated | 92 // Master copy of hit test data on the browser side. This is updated |
| 93 // as a result of DoHitTest called explicitly or when the FocusedNodeChanged | 93 // as a result of DoHitTest called explicitly or when the FocusedNodeChanged |
| 94 // is called in AwRenderViewExt. | 94 // is called in AwRenderViewExt. |
| 95 AwHitTestData last_hit_test_data_; | 95 AwHitTestData last_hit_test_data_; |
| 96 | 96 |
| 97 bool has_new_hit_test_data_; | 97 bool has_new_hit_test_data_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 99 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace android_webview | 102 } // namespace android_webview |
| 103 | 103 |
| 104 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 104 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
| OLD | NEW |