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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Make the hit test API accesible by viz component Created 3 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void UpdateCursor(const WebCursor& cursor) override; 108 void UpdateCursor(const WebCursor& cursor) override;
109 void SetIsLoading(bool is_loading) override; 109 void SetIsLoading(bool is_loading) override;
110 void RenderProcessGone(base::TerminationStatus status, 110 void RenderProcessGone(base::TerminationStatus status,
111 int error_code) override; 111 int error_code) override;
112 void Destroy() override; 112 void Destroy() override;
113 void SetTooltipText(const base::string16& tooltip_text) override; 113 void SetTooltipText(const base::string16& tooltip_text) override;
114 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 114 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
115 void GestureEventAck(const blink::WebGestureEvent& event, 115 void GestureEventAck(const blink::WebGestureEvent& event,
116 InputEventAckState ack_result) override; 116 InputEventAckState ack_result) override;
117 void DidCreateNewRendererCompositorFrameSink( 117 void DidCreateNewRendererCompositorFrameSink(
118 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink) 118 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink,
119 override; 119 viz::mojom::FrameInputHitTest*) override;
120 void SubmitCompositorFrame(const viz::LocalSurfaceId& local_surface_id, 120 void SubmitCompositorFrame(const viz::LocalSurfaceId& local_surface_id,
121 cc::CompositorFrame frame) override; 121 cc::CompositorFrame frame) override;
122 void OnDidNotProduceFrame(const viz::BeginFrameAck& ack) override; 122 void OnDidNotProduceFrame(const viz::BeginFrameAck& ack) override;
123 void OnSurfaceChanged(const viz::SurfaceInfo& surface_info) override; 123 void OnSurfaceChanged(const viz::SurfaceInfo& surface_info) override;
124 // Since the URL of content rendered by this class is not displayed in 124 // Since the URL of content rendered by this class is not displayed in
125 // the URL bar, this method does not need an implementation. 125 // the URL bar, this method does not need an implementation.
126 void ClearCompositorFrame() override {} 126 void ClearCompositorFrame() override {}
127 gfx::Rect GetBoundsInRootWindow() override; 127 gfx::Rect GetBoundsInRootWindow() override;
128 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 128 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
129 InputEventAckState ack_result) override; 129 InputEventAckState ack_result) override;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 private: 260 private:
261 virtual void SendSurfaceInfoToEmbedderImpl( 261 virtual void SendSurfaceInfoToEmbedderImpl(
262 const viz::SurfaceInfo& surface_info, 262 const viz::SurfaceInfo& surface_info,
263 const viz::SurfaceSequence& sequence); 263 const viz::SurfaceSequence& sequence);
264 264
265 void SubmitSurfaceCopyRequest(const gfx::Rect& src_subrect, 265 void SubmitSurfaceCopyRequest(const gfx::Rect& src_subrect,
266 const gfx::Size& dst_size, 266 const gfx::Size& dst_size,
267 const ReadbackRequestCallback& callback, 267 const ReadbackRequestCallback& callback,
268 const SkColorType preferred_color_type); 268 const SkColorType preferred_color_type);
269 269
270 void CreateCompositorFrameSinkSupport(); 270 void CreateCompositorFrameSinkSupport(
271 viz::mojom::FrameInputHitTest* = nullptr);
271 void ResetCompositorFrameSinkSupport(); 272 void ResetCompositorFrameSinkSupport();
272 void DetachFromTouchSelectionClientManagerIfNecessary(); 273 void DetachFromTouchSelectionClientManagerIfNecessary();
273 274
274 virtual bool HasEmbedderChanged(); 275 virtual bool HasEmbedderChanged();
275 276
276 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; 277 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>;
277 // Since frame-drawn callbacks are "fire once", we use std::deque to make 278 // Since frame-drawn callbacks are "fire once", we use std::deque to make
278 // it convenient to swap() when processing the list. 279 // it convenient to swap() when processing the list.
279 FrameSwappedCallbackList frame_swapped_callbacks_; 280 FrameSwappedCallbackList frame_swapped_callbacks_;
280 281
(...skipping 10 matching lines...) Expand all
291 std::unique_ptr<TouchSelectionControllerClientChildFrame> 292 std::unique_ptr<TouchSelectionControllerClientChildFrame>
292 selection_controller_client_; 293 selection_controller_client_;
293 294
294 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 295 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
295 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 296 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
296 }; 297 };
297 298
298 } // namespace content 299 } // namespace content
299 300
300 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 301 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698