| OLD | NEW |
| 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 Loading... |
| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 // Called when RenderWidget wants to start BeginFrame scheduling or stop. | 480 // Called when RenderWidget wants to start BeginFrame scheduling or stop. |
| 479 void OnSetNeedsBeginFrames(bool needs_begin_frames); | 481 void OnSetNeedsBeginFrames(bool needs_begin_frames); |
| 480 | 482 |
| 481 RenderFrameHostImpl* GetFocusedFrame(); | 483 RenderFrameHostImpl* GetFocusedFrame(); |
| 482 | 484 |
| 483 // Returns true if the |event| passed in can be forwarded to the renderer. | 485 // Returns true if the |event| passed in can be forwarded to the renderer. |
| 484 bool CanRendererHandleEvent(const ui::MouseEvent* event, | 486 bool CanRendererHandleEvent(const ui::MouseEvent* event, |
| 485 bool mouse_locked, | 487 bool mouse_locked, |
| 486 bool selection_popup); | 488 bool selection_popup); |
| 487 | 489 |
| 490 // Returns true when we can do SurfaceHitTesting for the event type. |
| 491 bool ShouldRouteEvent(const ui::Event* event) const; |
| 492 |
| 488 // Called when the parent window bounds change. | 493 // Called when the parent window bounds change. |
| 489 void HandleParentBoundsChanged(); | 494 void HandleParentBoundsChanged(); |
| 490 | 495 |
| 491 // Called when the parent window hierarchy for our window changes. | 496 // Called when the parent window hierarchy for our window changes. |
| 492 void ParentHierarchyChanged(); | 497 void ParentHierarchyChanged(); |
| 493 | 498 |
| 494 // Helper function to be called whenever new selection information is | 499 // Helper function to be called whenever new selection information is |
| 495 // received. It will update selection controller. | 500 // received. It will update selection controller. |
| 496 void SelectionUpdated(bool is_editable, | 501 void SelectionUpdated(bool is_editable, |
| 497 bool is_empty_text_form_control, | 502 bool is_empty_text_form_control, |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 float device_scale_factor_; | 681 float device_scale_factor_; |
| 677 | 682 |
| 678 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 683 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 679 | 684 |
| 680 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 685 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 681 }; | 686 }; |
| 682 | 687 |
| 683 } // namespace content | 688 } // namespace content |
| 684 | 689 |
| 685 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 690 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |