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

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: Update comments (saving first this time). 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698