| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // Returns true when we can do SurfaceHitTesting for the event type. | 334 // Returns true when we can do SurfaceHitTesting for the event type. |
| 335 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; | 335 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; |
| 336 void ProcessMouseEvent(const blink::WebMouseEvent& event, | 336 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 337 const ui::LatencyInfo& latency) override; | 337 const ui::LatencyInfo& latency) override; |
| 338 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 338 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| 339 const ui::LatencyInfo& latency) override; | 339 const ui::LatencyInfo& latency) override; |
| 340 void ProcessTouchEvent(const blink::WebTouchEvent& event, | 340 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 341 const ui::LatencyInfo& latency) override; | 341 const ui::LatencyInfo& latency) override; |
| 342 void ProcessGestureEvent(const blink::WebGestureEvent& event, | 342 void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 343 const ui::LatencyInfo& latency) override; | 343 const ui::LatencyInfo& latency) override; |
| 344 gfx::Point TransformPointToLocalCoordSpace( | 344 bool TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 345 const cc::SurfaceId& original_surface, |
| 346 gfx::Point* transformed_point) override; |
| 347 bool TransformPointToCoordSpaceForView( |
| 345 const gfx::Point& point, | 348 const gfx::Point& point, |
| 346 const cc::SurfaceId& original_surface) override; | 349 RenderWidgetHostViewBase* target_view, |
| 347 gfx::Point TransformPointToCoordSpaceForView( | 350 gfx::Point* transformed_point) override; |
| 348 const gfx::Point& point, | |
| 349 RenderWidgetHostViewBase* target_view) override; | |
| 350 | 351 |
| 351 // TextInputManager::Observer implementation. | 352 // TextInputManager::Observer implementation. |
| 352 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 353 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
| 353 RenderWidgetHostViewBase* updated_view, | 354 RenderWidgetHostViewBase* updated_view, |
| 354 bool did_update_state) override; | 355 bool did_update_state) override; |
| 355 void OnImeCancelComposition(TextInputManager* text_input_manager, | 356 void OnImeCancelComposition(TextInputManager* text_input_manager, |
| 356 RenderWidgetHostViewBase* updated_view) override; | 357 RenderWidgetHostViewBase* updated_view) override; |
| 357 void OnImeCompositionRangeChanged( | 358 void OnImeCompositionRangeChanged( |
| 358 TextInputManager* text_input_manager, | 359 TextInputManager* text_input_manager, |
| 359 RenderWidgetHostViewBase* updated_view) override; | 360 RenderWidgetHostViewBase* updated_view) override; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 558 |
| 558 // Factory used to safely scope delayed calls to ShutdownHost(). | 559 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 559 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 560 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 560 | 561 |
| 561 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 562 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 562 }; | 563 }; |
| 563 | 564 |
| 564 } // namespace content | 565 } // namespace content |
| 565 | 566 |
| 566 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 567 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |