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

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

Issue 1412923009: Route touch-events for WebViewGuest directly to guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Mac code, rebase to master@{#361742}. Created 5 years 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void ClearCompositorFrame() override; 185 void ClearCompositorFrame() override;
186 void DidStopFlinging() override; 186 void DidStopFlinging() override;
187 void OnDidNavigateMainFrameToNewPage() override; 187 void OnDidNavigateMainFrameToNewPage() override;
188 void LockCompositingSurface() override; 188 void LockCompositingSurface() override;
189 void UnlockCompositingSurface() override; 189 void UnlockCompositingSurface() override;
190 uint32_t GetSurfaceIdNamespace() override; 190 uint32_t GetSurfaceIdNamespace() override;
191 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, 191 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point,
192 gfx::Point* transformed_point) override; 192 gfx::Point* transformed_point) override;
193 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; 193 void ProcessMouseEvent(const blink::WebMouseEvent& event) override;
194 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; 194 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override;
195 void ProcessTouchEvent(const blink::WebTouchEvent& event,
196 const ui::LatencyInfo& latency) override;
195 void TransformPointToLocalCoordSpace(const gfx::Point& point, 197 void TransformPointToLocalCoordSpace(const gfx::Point& point,
196 cc::SurfaceId original_surface, 198 cc::SurfaceId original_surface,
197 gfx::Point* transformed_point) override; 199 gfx::Point* transformed_point) override;
198 200
199 #if defined(OS_WIN) 201 #if defined(OS_WIN)
200 void SetParentNativeViewAccessible( 202 void SetParentNativeViewAccessible(
201 gfx::NativeViewAccessible accessible_parent) override; 203 gfx::NativeViewAccessible accessible_parent) override;
202 gfx::NativeViewId GetParentForWindowlessPlugin() const override; 204 gfx::NativeViewId GetParentForWindowlessPlugin() const override;
203 #endif 205 #endif
204 206
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // Called when RenderWidget wants to start BeginFrame scheduling or stop. 478 // Called when RenderWidget wants to start BeginFrame scheduling or stop.
477 void OnSetNeedsBeginFrames(bool needs_begin_frames); 479 void OnSetNeedsBeginFrames(bool needs_begin_frames);
478 480
479 RenderFrameHostImpl* GetFocusedFrame(); 481 RenderFrameHostImpl* GetFocusedFrame();
480 482
481 // Returns true if the |event| passed in can be forwarded to the renderer. 483 // Returns true if the |event| passed in can be forwarded to the renderer.
482 bool CanRendererHandleEvent(const ui::MouseEvent* event, 484 bool CanRendererHandleEvent(const ui::MouseEvent* event,
483 bool mouse_locked, 485 bool mouse_locked,
484 bool selection_popup); 486 bool selection_popup);
485 487
488 // Returns true when we can do SurfaceHitTesting for the event type.
489 bool ShouldRouteEvent(const ui::Event* event) const;
490
486 // Called when the parent window bounds change. 491 // Called when the parent window bounds change.
487 void HandleParentBoundsChanged(); 492 void HandleParentBoundsChanged();
488 493
489 // Called when the parent window hierarchy for our window changes. 494 // Called when the parent window hierarchy for our window changes.
490 void ParentHierarchyChanged(); 495 void ParentHierarchyChanged();
491 496
492 // Helper function to be called whenever new selection information is 497 // Helper function to be called whenever new selection information is
493 // received. It will update selection controller. 498 // received. It will update selection controller.
494 void SelectionUpdated(bool is_editable, 499 void SelectionUpdated(bool is_editable,
495 bool is_empty_text_form_control, 500 bool is_empty_text_form_control,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 float device_scale_factor_; 679 float device_scale_factor_;
675 680
676 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 681 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
677 682
678 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 683 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
679 }; 684 };
680 685
681 } // namespace content 686 } // namespace content
682 687
683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 688 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698