| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 void UnlockCompositingSurface() override; | 342 void UnlockCompositingSurface() override; |
| 343 | 343 |
| 344 bool LockMouse() override; | 344 bool LockMouse() override; |
| 345 void UnlockMouse() override; | 345 void UnlockMouse() override; |
| 346 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 346 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 347 InputEventAckState ack_result) override; | 347 InputEventAckState ack_result) override; |
| 348 | 348 |
| 349 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; | 349 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; |
| 350 | 350 |
| 351 uint32_t GetSurfaceIdNamespace() override; | 351 uint32_t GetSurfaceIdNamespace() override; |
| 352 uint32_t SurfaceIdNamespaceAtPoint(cc::SurfaceHittestDelegate* delegate, | 352 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, |
| 353 const gfx::Point& point, | |
| 354 gfx::Point* transformed_point) override; | 353 gfx::Point* transformed_point) override; |
| 355 // Returns true when we can do SurfaceHitTesting for the event type. | 354 // Returns true when we can do SurfaceHitTesting for the event type. |
| 356 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; | 355 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; |
| 357 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; | 356 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; |
| 358 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; | 357 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; |
| 359 void TransformPointToLocalCoordSpace(const gfx::Point& point, | 358 void TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 360 cc::SurfaceId original_surface, | 359 cc::SurfaceId original_surface, |
| 361 gfx::Point* transformed_point) override; | 360 gfx::Point* transformed_point) override; |
| 362 | 361 |
| 363 // IPC::Sender implementation. | 362 // IPC::Sender implementation. |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 609 |
| 611 // Factory used to safely scope delayed calls to ShutdownHost(). | 610 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 612 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 611 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 613 | 612 |
| 614 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 613 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 615 }; | 614 }; |
| 616 | 615 |
| 617 } // namespace content | 616 } // namespace content |
| 618 | 617 |
| 619 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 618 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |