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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 134 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
135 bool LockMouse() override; | 135 bool LockMouse() override; |
136 void UnlockMouse() override; | 136 void UnlockMouse() override; |
137 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 137 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
138 cc::CompositorFrame frame) override; | 138 cc::CompositorFrame frame) override; |
139 void ClearCompositorFrame() override; | 139 void ClearCompositorFrame() override; |
140 void SetIsInVR(bool is_in_vr) override; | 140 void SetIsInVR(bool is_in_vr) override; |
141 bool IsInVR() const override; | 141 bool IsInVR() const override; |
142 void DidOverscroll(const ui::DidOverscrollParams& params) override; | 142 void DidOverscroll(const ui::DidOverscrollParams& params) override; |
143 void DidStopFlinging() override; | 143 void DidStopFlinging() override; |
144 cc::FrameSinkId GetFrameSinkId() override; | |
145 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 144 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
146 const SkBitmap& zoomed_bitmap) override; | 145 const SkBitmap& zoomed_bitmap) override; |
147 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 146 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
148 override; | 147 override; |
149 void OnDidNavigateMainFrameToNewPage() override; | 148 void OnDidNavigateMainFrameToNewPage() override; |
150 void SetNeedsBeginFrames(bool needs_begin_frames) override; | 149 void SetNeedsBeginFrames(bool needs_begin_frames) override; |
| 150 cc::FrameSinkId GetFrameSinkId() override; |
| 151 cc::FrameSinkId FrameSinkIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
| 152 const gfx::Point& point, |
| 153 gfx::Point* transformed_point) override; |
| 154 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 155 const ui::LatencyInfo& latency) override; |
| 156 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| 157 const ui::LatencyInfo& latency) override; |
| 158 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 159 const ui::LatencyInfo& latency) override; |
| 160 void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 161 const ui::LatencyInfo& latency) override; |
| 162 bool TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 163 const cc::SurfaceId& original_surface, |
| 164 gfx::Point* transformed_point) override; |
| 165 bool TransformPointToCoordSpaceForView( |
| 166 const gfx::Point& point, |
| 167 RenderWidgetHostViewBase* target_view, |
| 168 gfx::Point* transformed_point) override; |
151 | 169 |
152 // ui::GestureProviderClient implementation. | 170 // ui::GestureProviderClient implementation. |
153 void OnGestureEvent(const ui::GestureEventData& gesture) override; | 171 void OnGestureEvent(const ui::GestureEventData& gesture) override; |
154 | 172 |
155 // ui::WindowAndroidObserver implementation. | 173 // ui::WindowAndroidObserver implementation. |
156 void OnCompositingDidCommit() override {} | 174 void OnCompositingDidCommit() override {} |
157 void OnRootWindowVisibilityChanged(bool visible) override; | 175 void OnRootWindowVisibilityChanged(bool visible) override; |
158 void OnAttachCompositor() override; | 176 void OnAttachCompositor() override; |
159 void OnDetachCompositor() override; | 177 void OnDetachCompositor() override; |
160 void OnAnimate(base::TimeTicks begin_frame_time) override; | 178 void OnAnimate(base::TimeTicks begin_frame_time) override; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 void OnImeCompositionRangeChanged( | 263 void OnImeCompositionRangeChanged( |
246 TextInputManager* text_input_manager, | 264 TextInputManager* text_input_manager, |
247 RenderWidgetHostViewBase* updated_view) override; | 265 RenderWidgetHostViewBase* updated_view) override; |
248 void OnImeCancelComposition(TextInputManager* text_input_manager, | 266 void OnImeCancelComposition(TextInputManager* text_input_manager, |
249 RenderWidgetHostViewBase* updated_view) override; | 267 RenderWidgetHostViewBase* updated_view) override; |
250 void OnTextSelectionChanged(TextInputManager* text_input_manager, | 268 void OnTextSelectionChanged(TextInputManager* text_input_manager, |
251 RenderWidgetHostViewBase* updated_view) override; | 269 RenderWidgetHostViewBase* updated_view) override; |
252 | 270 |
253 ImeAdapterAndroid* ime_adapter_for_testing() { return &ime_adapter_android_; } | 271 ImeAdapterAndroid* ime_adapter_for_testing() { return &ime_adapter_android_; } |
254 | 272 |
| 273 // Exposed for tests. |
| 274 cc::SurfaceId SurfaceIdForTesting() const override; |
| 275 |
255 private: | 276 private: |
256 void RunAckCallbacks(); | 277 void RunAckCallbacks(); |
257 | 278 |
258 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); | 279 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); |
259 void SubmitCompositorFrame(cc::CompositorFrame frame_data); | 280 void SubmitCompositorFrame(cc::CompositorFrame frame_data); |
260 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, | 281 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, |
261 bool is_swap_ack); | 282 bool is_swap_ack); |
262 | 283 |
263 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, | 284 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, |
264 bool is_transparent); | 285 bool is_transparent); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 float prev_bottom_shown_pix_; | 403 float prev_bottom_shown_pix_; |
383 | 404 |
384 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 405 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
385 | 406 |
386 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 407 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
387 }; | 408 }; |
388 | 409 |
389 } // namespace content | 410 } // namespace content |
390 | 411 |
391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |