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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 private: | 74 private: |
75 // content::WebContentsObserver implementation. | 75 // content::WebContentsObserver implementation. |
76 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 76 virtual void RenderViewGone(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 OnDidActivateAcceleratedCompositing(int input_handler_id); | |
85 void OnPageScaleFactorChanged(float page_scale_factor); | 84 void OnPageScaleFactorChanged(float page_scale_factor); |
86 | 85 |
87 bool IsRenderViewReady() const; | 86 bool IsRenderViewReady() const; |
88 | 87 |
89 AwRenderViewHostExtClient* client_; | 88 AwRenderViewHostExtClient* client_; |
90 | 89 |
91 std::map<int, DocumentHasImagesResult> pending_document_has_images_requests_; | 90 std::map<int, DocumentHasImagesResult> pending_document_has_images_requests_; |
92 | 91 |
93 // 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 |
94 // as a result of DoHitTest called explicitly or when the FocusedNodeChanged | 93 // as a result of DoHitTest called explicitly or when the FocusedNodeChanged |
95 // is called in AwRenderViewExt. | 94 // is called in AwRenderViewExt. |
96 AwHitTestData last_hit_test_data_; | 95 AwHitTestData last_hit_test_data_; |
97 | 96 |
98 bool has_new_hit_test_data_; | 97 bool has_new_hit_test_data_; |
99 | 98 |
100 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 99 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace android_webview | 102 } // namespace android_webview |
104 | 103 |
105 #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 |