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

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: Fix null pointer deref when guest is terminated. 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 197
196 #if defined(OS_WIN) 198 #if defined(OS_WIN)
197 void SetParentNativeViewAccessible( 199 void SetParentNativeViewAccessible(
198 gfx::NativeViewAccessible accessible_parent) override; 200 gfx::NativeViewAccessible accessible_parent) override;
199 gfx::NativeViewId GetParentForWindowlessPlugin() const override; 201 gfx::NativeViewId GetParentForWindowlessPlugin() const override;
200 #endif 202 #endif
201 203
202 // Overridden from ui::TextInputClient: 204 // Overridden from ui::TextInputClient:
203 void SetCompositionText(const ui::CompositionText& composition) override; 205 void SetCompositionText(const ui::CompositionText& composition) override;
204 void ConfirmCompositionText() override; 206 void ConfirmCompositionText() override;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // Called when RenderWidget wants to start BeginFrame scheduling or stop. 475 // Called when RenderWidget wants to start BeginFrame scheduling or stop.
474 void OnSetNeedsBeginFrames(bool needs_begin_frames); 476 void OnSetNeedsBeginFrames(bool needs_begin_frames);
475 477
476 RenderFrameHostImpl* GetFocusedFrame(); 478 RenderFrameHostImpl* GetFocusedFrame();
477 479
478 // Returns true if the |event| passed in can be forwarded to the renderer. 480 // Returns true if the |event| passed in can be forwarded to the renderer.
479 bool CanRendererHandleEvent(const ui::MouseEvent* event, 481 bool CanRendererHandleEvent(const ui::MouseEvent* event,
480 bool mouse_locked, 482 bool mouse_locked,
481 bool selection_popup); 483 bool selection_popup);
482 484
485 // Returns true when we can do SurfaceHitTesting for the event type.
486 bool ShouldRouteEvent(const ui::Event* event) const;
487
483 // Called when the parent window bounds change. 488 // Called when the parent window bounds change.
484 void HandleParentBoundsChanged(); 489 void HandleParentBoundsChanged();
485 490
486 // Called when the parent window hierarchy for our window changes. 491 // Called when the parent window hierarchy for our window changes.
487 void ParentHierarchyChanged(); 492 void ParentHierarchyChanged();
488 493
489 // Helper function to be called whenever new selection information is 494 // Helper function to be called whenever new selection information is
490 // received. It will update selection controller. 495 // received. It will update selection controller.
491 void SelectionUpdated(bool is_editable, 496 void SelectionUpdated(bool is_editable,
492 bool is_empty_text_form_control, 497 bool is_empty_text_form_control,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 float device_scale_factor_; 676 float device_scale_factor_;
672 677
673 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 678 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
674 679
675 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 680 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
676 }; 681 };
677 682
678 } // namespace content 683 } // namespace content
679 684
680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 685 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698