| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; | 353 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; |
| 354 | 354 |
| 355 uint32_t GetSurfaceIdNamespace() override; | 355 uint32_t GetSurfaceIdNamespace() override; |
| 356 uint32_t SurfaceIdNamespaceAtPoint(cc::SurfaceHittestDelegate* delegate, | 356 uint32_t SurfaceIdNamespaceAtPoint(cc::SurfaceHittestDelegate* delegate, |
| 357 const gfx::Point& point, | 357 const gfx::Point& point, |
| 358 gfx::Point* transformed_point) override; | 358 gfx::Point* transformed_point) override; |
| 359 // Returns true when we can do SurfaceHitTesting for the event type. | 359 // Returns true when we can do SurfaceHitTesting for the event type. |
| 360 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; | 360 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; |
| 361 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; | 361 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; |
| 362 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; | 362 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; |
| 363 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 364 const ui::LatencyInfo& latency) override; |
| 363 void TransformPointToLocalCoordSpace(const gfx::Point& point, | 365 void TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 364 cc::SurfaceId original_surface, | 366 cc::SurfaceId original_surface, |
| 365 gfx::Point* transformed_point) override; | 367 gfx::Point* transformed_point) override; |
| 366 | 368 |
| 367 // IPC::Sender implementation. | 369 // IPC::Sender implementation. |
| 368 bool Send(IPC::Message* message) override; | 370 bool Send(IPC::Message* message) override; |
| 369 | 371 |
| 370 // gfx::DisplayObserver implementation. | 372 // gfx::DisplayObserver implementation. |
| 371 void OnDisplayAdded(const gfx::Display& new_display) override; | 373 void OnDisplayAdded(const gfx::Display& new_display) override; |
| 372 void OnDisplayRemoved(const gfx::Display& old_display) override; | 374 void OnDisplayRemoved(const gfx::Display& old_display) override; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 619 |
| 618 // Factory used to safely scope delayed calls to ShutdownHost(). | 620 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 619 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 621 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 620 | 622 |
| 621 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 623 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 622 }; | 624 }; |
| 623 | 625 |
| 624 } // namespace content | 626 } // namespace content |
| 625 | 627 |
| 626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 628 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |