Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2509103002: Enable browser process hit testing on Android (Closed)
Patch Set: Added missing check Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 128 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
129 bool LockMouse() override; 129 bool LockMouse() override;
130 void UnlockMouse() override; 130 void UnlockMouse() override;
131 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 131 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
132 cc::CompositorFrame frame) override; 132 cc::CompositorFrame frame) override;
133 void ClearCompositorFrame() override; 133 void ClearCompositorFrame() override;
134 void SetIsInVR(bool is_in_vr) override; 134 void SetIsInVR(bool is_in_vr) override;
135 bool IsInVR() const override; 135 bool IsInVR() const override;
136 void DidOverscroll(const ui::DidOverscrollParams& params) override; 136 void DidOverscroll(const ui::DidOverscrollParams& params) override;
137 void DidStopFlinging() override; 137 void DidStopFlinging() override;
138 cc::FrameSinkId GetFrameSinkId() override;
139 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 138 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
140 const SkBitmap& zoomed_bitmap) override; 139 const SkBitmap& zoomed_bitmap) override;
141 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 140 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
142 override; 141 override;
143 void OnDidNavigateMainFrameToNewPage() override; 142 void OnDidNavigateMainFrameToNewPage() override;
144 void SetNeedsBeginFrames(bool needs_begin_frames) override; 143 void SetNeedsBeginFrames(bool needs_begin_frames) override;
144 cc::FrameSinkId GetFrameSinkId() override;
145 cc::FrameSinkId FrameSinkIdAtPoint(cc::SurfaceHittestDelegate* delegate,
146 const gfx::Point& point,
147 gfx::Point* transformed_point) override;
148 void ProcessMouseEvent(const blink::WebMouseEvent& event,
149 const ui::LatencyInfo& latency) override;
150 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event,
151 const ui::LatencyInfo& latency) override;
152 void ProcessTouchEvent(const blink::WebTouchEvent& event,
153 const ui::LatencyInfo& latency) override;
154 void ProcessGestureEvent(const blink::WebGestureEvent& event,
155 const ui::LatencyInfo& latency) override;
156 bool TransformPointToLocalCoordSpace(const gfx::Point& point,
157 const cc::SurfaceId& original_surface,
158 gfx::Point* transformed_point) override;
159 bool TransformPointToCoordSpaceForView(
160 const gfx::Point& point,
161 RenderWidgetHostViewBase* target_view,
162 gfx::Point* transformed_point) override;
145 163
146 // ui::GestureProviderClient implementation. 164 // ui::GestureProviderClient implementation.
147 void OnGestureEvent(const ui::GestureEventData& gesture) override; 165 void OnGestureEvent(const ui::GestureEventData& gesture) override;
148 166
149 // ui::WindowAndroidObserver implementation. 167 // ui::WindowAndroidObserver implementation.
150 void OnCompositingDidCommit() override {} 168 void OnCompositingDidCommit() override {}
151 void OnRootWindowVisibilityChanged(bool visible) override; 169 void OnRootWindowVisibilityChanged(bool visible) override;
152 void OnAttachCompositor() override; 170 void OnAttachCompositor() override;
153 void OnDetachCompositor() override; 171 void OnDetachCompositor() override;
154 void OnAnimate(base::TimeTicks begin_frame_time) override; 172 void OnAnimate(base::TimeTicks begin_frame_time) override;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void OnImeCompositionRangeChanged( 258 void OnImeCompositionRangeChanged(
241 TextInputManager* text_input_manager, 259 TextInputManager* text_input_manager,
242 RenderWidgetHostViewBase* updated_view) override; 260 RenderWidgetHostViewBase* updated_view) override;
243 void OnImeCancelComposition(TextInputManager* text_input_manager, 261 void OnImeCancelComposition(TextInputManager* text_input_manager,
244 RenderWidgetHostViewBase* updated_view) override; 262 RenderWidgetHostViewBase* updated_view) override;
245 void OnTextSelectionChanged(TextInputManager* text_input_manager, 263 void OnTextSelectionChanged(TextInputManager* text_input_manager,
246 RenderWidgetHostViewBase* updated_view) override; 264 RenderWidgetHostViewBase* updated_view) override;
247 265
248 ImeAdapterAndroid* ime_adapter_for_testing() { return &ime_adapter_android_; } 266 ImeAdapterAndroid* ime_adapter_for_testing() { return &ime_adapter_android_; }
249 267
268 // Exposed for tests.
269 cc::SurfaceId SurfaceIdForTesting() const override;
270
250 private: 271 private:
251 void RunAckCallbacks(); 272 void RunAckCallbacks();
252 273
253 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); 274 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id);
254 void SubmitCompositorFrame(cc::CompositorFrame frame_data); 275 void SubmitCompositorFrame(cc::CompositorFrame frame_data);
255 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, 276 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id,
256 bool is_swap_ack); 277 bool is_swap_ack);
257 278
258 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, 279 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata,
259 bool is_transparent); 280 bool is_transparent);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 float prev_bottom_shown_pix_; 398 float prev_bottom_shown_pix_;
378 399
379 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 400 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
380 401
381 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 402 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
382 }; 403 };
383 404
384 } // namespace content 405 } // namespace content
385 406
386 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 407 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698