| 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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 void UnlockCompositingSurface() override; | 323 void UnlockCompositingSurface() override; |
| 324 | 324 |
| 325 bool LockMouse() override; | 325 bool LockMouse() override; |
| 326 void UnlockMouse() override; | 326 void UnlockMouse() override; |
| 327 void GestureEventAck(const blink::WebGestureEvent& event, | 327 void GestureEventAck(const blink::WebGestureEvent& event, |
| 328 InputEventAckState ack_result) override; | 328 InputEventAckState ack_result) override; |
| 329 | 329 |
| 330 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 330 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
| 331 override; | 331 override; |
| 332 | 332 |
| 333 uint32_t GetSurfaceIdNamespace() override; | 333 uint32_t GetSurfaceClientId() override; |
| 334 uint32_t SurfaceIdNamespaceAtPoint(cc::SurfaceHittestDelegate* delegate, | 334 uint32_t SurfaceClientIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
| 335 const gfx::Point& point, | 335 const gfx::Point& point, |
| 336 gfx::Point* transformed_point) override; | 336 gfx::Point* transformed_point) override; |
| 337 // Returns true when we can do SurfaceHitTesting for the event type. | 337 // Returns true when we can do SurfaceHitTesting for the event type. |
| 338 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; | 338 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; |
| 339 void ProcessMouseEvent(const blink::WebMouseEvent& event, | 339 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 340 const ui::LatencyInfo& latency) override; | 340 const ui::LatencyInfo& latency) override; |
| 341 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 341 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| 342 const ui::LatencyInfo& latency) override; | 342 const ui::LatencyInfo& latency) override; |
| 343 void ProcessTouchEvent(const blink::WebTouchEvent& event, | 343 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 344 const ui::LatencyInfo& latency) override; | 344 const ui::LatencyInfo& latency) override; |
| 345 void ProcessGestureEvent(const blink::WebGestureEvent& event, | 345 void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 346 const ui::LatencyInfo& latency) override; | 346 const ui::LatencyInfo& latency) override; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 540 |
| 541 // Factory used to safely scope delayed calls to ShutdownHost(). | 541 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 542 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 542 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 543 | 543 |
| 544 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 544 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 545 }; | 545 }; |
| 546 | 546 |
| 547 } // namespace content | 547 } // namespace content |
| 548 | 548 |
| 549 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 549 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |