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