| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 337 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
| 338 override; | 338 override; |
| 339 | 339 |
| 340 uint32_t GetSurfaceIdNamespace() override; | 340 uint32_t GetSurfaceIdNamespace() override; |
| 341 uint32_t SurfaceIdNamespaceAtPoint(cc::SurfaceHittestDelegate* delegate, | 341 uint32_t SurfaceIdNamespaceAtPoint(cc::SurfaceHittestDelegate* delegate, |
| 342 const gfx::Point& point, | 342 const gfx::Point& point, |
| 343 gfx::Point* transformed_point) override; | 343 gfx::Point* transformed_point) override; |
| 344 // Returns true when we can do SurfaceHitTesting for the event type. | 344 // Returns true when we can do SurfaceHitTesting for the event type. |
| 345 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; | 345 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; |
| 346 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; | 346 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 347 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; | 347 const ui::LatencyInfo& latency) override; |
| 348 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| 349 const ui::LatencyInfo& latency) override; |
| 348 void ProcessTouchEvent(const blink::WebTouchEvent& event, | 350 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 349 const ui::LatencyInfo& latency) override; | 351 const ui::LatencyInfo& latency) override; |
| 350 void ProcessGestureEvent(const blink::WebGestureEvent& event, | 352 void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 351 const ui::LatencyInfo& latency) override; | 353 const ui::LatencyInfo& latency) override; |
| 352 void TransformPointToLocalCoordSpace(const gfx::Point& point, | 354 void TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 353 cc::SurfaceId original_surface, | 355 cc::SurfaceId original_surface, |
| 354 gfx::Point* transformed_point) override; | 356 gfx::Point* transformed_point) override; |
| 355 | 357 |
| 356 // IPC::Sender implementation. | 358 // IPC::Sender implementation. |
| 357 bool Send(IPC::Message* message) override; | 359 bool Send(IPC::Message* message) override; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 622 |
| 621 // Factory used to safely scope delayed calls to ShutdownHost(). | 623 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 622 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 624 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 623 | 625 |
| 624 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 626 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 625 }; | 627 }; |
| 626 | 628 |
| 627 } // namespace content | 629 } // namespace content |
| 628 | 630 |
| 629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 631 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |