Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 1752833002: Implement Gesture event hit testing/forwarding for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wjmCFTouch.v2
Patch Set: Update comments as per suggestions. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 363 void ProcessTouchEvent(const blink::WebTouchEvent& event,
364 const ui::LatencyInfo& latency) override; 364 const ui::LatencyInfo& latency) override;
365 void ProcessGestureEvent(const blink::WebGestureEvent& event,
366 const ui::LatencyInfo& latency) override;
365 void TransformPointToLocalCoordSpace(const gfx::Point& point, 367 void TransformPointToLocalCoordSpace(const gfx::Point& point,
366 cc::SurfaceId original_surface, 368 cc::SurfaceId original_surface,
367 gfx::Point* transformed_point) override; 369 gfx::Point* transformed_point) override;
368 370
369 // IPC::Sender implementation. 371 // IPC::Sender implementation.
370 bool Send(IPC::Message* message) override; 372 bool Send(IPC::Message* message) override;
371 373
372 // gfx::DisplayObserver implementation. 374 // gfx::DisplayObserver implementation.
373 void OnDisplayAdded(const gfx::Display& new_display) override; 375 void OnDisplayAdded(const gfx::Display& new_display) override;
374 void OnDisplayRemoved(const gfx::Display& old_display) override; 376 void OnDisplayRemoved(const gfx::Display& old_display) override;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 621
620 // Factory used to safely scope delayed calls to ShutdownHost(). 622 // Factory used to safely scope delayed calls to ShutdownHost().
621 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 623 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
622 624
623 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 625 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
624 }; 626 };
625 627
626 } // namespace content 628 } // namespace content
627 629
628 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 630 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698