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