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

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

Issue 1412923009: Route touch-events for WebViewGuest directly to guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address creis@'s suggestions. Created 5 years 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 <list> 10 #include <list>
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bool LockMouse() override; 341 bool LockMouse() override;
342 void UnlockMouse() override; 342 void UnlockMouse() override;
343 void WheelEventAck(const blink::WebMouseWheelEvent& event, 343 void WheelEventAck(const blink::WebMouseWheelEvent& event,
344 InputEventAckState ack_result) override; 344 InputEventAckState ack_result) override;
345 345
346 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; 346 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override;
347 347
348 uint32_t GetSurfaceIdNamespace() override; 348 uint32_t GetSurfaceIdNamespace() override;
349 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, 349 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point,
350 gfx::Point* transformed_point) override; 350 gfx::Point* transformed_point) override;
351 // Returns true when we can do SurfaceHitTesting for the event type.
352 bool ShouldRouteEvent(const blink::WebInputEvent& event) const;
351 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; 353 void ProcessMouseEvent(const blink::WebMouseEvent& event) override;
352 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; 354 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override;
353 void TransformPointToLocalCoordSpace(const gfx::Point& point, 355 void TransformPointToLocalCoordSpace(const gfx::Point& point,
354 cc::SurfaceId original_surface, 356 cc::SurfaceId original_surface,
355 gfx::Point* transformed_point) override; 357 gfx::Point* transformed_point) override;
356 358
357 // IPC::Sender implementation. 359 // IPC::Sender implementation.
358 bool Send(IPC::Message* message) override; 360 bool Send(IPC::Message* message) override;
359 361
360 // gfx::DisplayObserver implementation. 362 // gfx::DisplayObserver implementation.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 606
605 // Factory used to safely scope delayed calls to ShutdownHost(). 607 // Factory used to safely scope delayed calls to ShutdownHost().
606 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 608 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
607 609
608 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 610 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
609 }; 611 };
610 612
611 } // namespace content 613 } // namespace content
612 614
613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698