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

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

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Address Rob's comments 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 (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_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 InputEventAckState FilterChildGestureEvent( 162 InputEventAckState FilterChildGestureEvent(
163 const blink::WebGestureEvent& gesture_event) override; 163 const blink::WebGestureEvent& gesture_event) override;
164 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 164 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
165 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 165 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
166 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; 166 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override;
167 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; 167 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override;
168 void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) override; 168 void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) override;
169 bool LockMouse() override; 169 bool LockMouse() override;
170 void UnlockMouse() override; 170 void UnlockMouse() override;
171 void DidCreateNewRendererCompositorFrameSink( 171 void DidCreateNewRendererCompositorFrameSink(
172 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink) 172 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink,
173 override; 173 viz::mojom::TargetFrameForInputDelegate*) override;
174 void SubmitCompositorFrame(const viz::LocalSurfaceId& local_surface_id, 174 void SubmitCompositorFrame(const viz::LocalSurfaceId& local_surface_id,
175 cc::CompositorFrame frame) override; 175 cc::CompositorFrame frame) override;
176 void OnDidNotProduceFrame(const viz::BeginFrameAck& ack) override; 176 void OnDidNotProduceFrame(const viz::BeginFrameAck& ack) override;
177 void ClearCompositorFrame() override; 177 void ClearCompositorFrame() override;
178 void DidStopFlinging() override; 178 void DidStopFlinging() override;
179 void OnDidNavigateMainFrameToNewPage() override; 179 void OnDidNavigateMainFrameToNewPage() override;
180 viz::FrameSinkId GetFrameSinkId() override; 180 viz::FrameSinkId GetFrameSinkId() override;
181 viz::LocalSurfaceId GetLocalSurfaceId() const override; 181 viz::LocalSurfaceId GetLocalSurfaceId() const override;
182 viz::FrameSinkId FrameSinkIdAtPoint(viz::SurfaceHittestDelegate* delegate, 182 viz::FrameSinkId FrameSinkIdAtPoint(viz::SurfaceHittestDelegate* delegate,
183 const gfx::Point& point, 183 const gfx::Point& point,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 std::unique_ptr<wm::ScopedTooltipDisabler> tooltip_disabler_; 595 std::unique_ptr<wm::ScopedTooltipDisabler> tooltip_disabler_;
596 596
597 // True when this view acts as a platform view hack for a 597 // True when this view acts as a platform view hack for a
598 // RenderWidgetHostViewGuest. 598 // RenderWidgetHostViewGuest.
599 bool is_guest_view_hack_; 599 bool is_guest_view_hack_;
600 600
601 float device_scale_factor_; 601 float device_scale_factor_;
602 602
603 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink_ = 603 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink_ =
604 nullptr; 604 nullptr;
605 viz::mojom::TargetFrameForInputDelegate* target_frame_for_input_delegate_ =
606 nullptr;
605 607
606 // While this is a ui::EventHandler for targetting, |event_handler_| actually 608 // While this is a ui::EventHandler for targetting, |event_handler_| actually
607 // provides an implementation, and directs events to |host_|. 609 // provides an implementation, and directs events to |host_|.
608 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 610 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
609 611
610 viz::FrameSinkId frame_sink_id_; 612 viz::FrameSinkId frame_sink_id_;
611 viz::LocalSurfaceId local_surface_id_; 613 viz::LocalSurfaceId local_surface_id_;
612 614
613 std::unique_ptr<CursorManager> cursor_manager_; 615 std::unique_ptr<CursorManager> cursor_manager_;
614 616
615 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 617 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
616 618
617 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 619 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
618 }; 620 };
619 621
620 } // namespace content 622 } // namespace content
621 623
622 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 624 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698