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 2184033003: Refactor browser process coordinate transformation methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed problematic DCHECK Created 4 years, 4 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Returns true when we can do SurfaceHitTesting for the event type. 337 // Returns true when we can do SurfaceHitTesting for the event type.
338 bool ShouldRouteEvent(const blink::WebInputEvent& event) const; 338 bool ShouldRouteEvent(const blink::WebInputEvent& event) const;
339 void ProcessMouseEvent(const blink::WebMouseEvent& event, 339 void ProcessMouseEvent(const blink::WebMouseEvent& event,
340 const ui::LatencyInfo& latency) override; 340 const ui::LatencyInfo& latency) override;
341 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, 341 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event,
342 const ui::LatencyInfo& latency) override; 342 const ui::LatencyInfo& latency) override;
343 void ProcessTouchEvent(const blink::WebTouchEvent& event, 343 void ProcessTouchEvent(const blink::WebTouchEvent& event,
344 const ui::LatencyInfo& latency) override; 344 const ui::LatencyInfo& latency) override;
345 void ProcessGestureEvent(const blink::WebGestureEvent& event, 345 void ProcessGestureEvent(const blink::WebGestureEvent& event,
346 const ui::LatencyInfo& latency) override; 346 const ui::LatencyInfo& latency) override;
347 void TransformPointToLocalCoordSpace(const gfx::Point& point, 347 gfx::Point TransformPointToLocalCoordSpace(
348 const cc::SurfaceId& original_surface, 348 const gfx::Point& point,
349 gfx::Point* transformed_point) override; 349 const cc::SurfaceId& original_surface) override;
350 gfx::Point TransformPointToCoordSpaceForView(
351 const gfx::Point& point,
352 RenderWidgetHostViewBase* target_view) override;
350 353
351 // IPC::Sender implementation. 354 // IPC::Sender implementation.
352 bool Send(IPC::Message* message) override; 355 bool Send(IPC::Message* message) override;
353 356
354 // display::DisplayObserver implementation. 357 // display::DisplayObserver implementation.
355 void OnDisplayAdded(const display::Display& new_display) override; 358 void OnDisplayAdded(const display::Display& new_display) override;
356 void OnDisplayRemoved(const display::Display& old_display) override; 359 void OnDisplayRemoved(const display::Display& old_display) override;
357 void OnDisplayMetricsChanged(const display::Display& display, 360 void OnDisplayMetricsChanged(const display::Display& display,
358 uint32_t metrics) override; 361 uint32_t metrics) override;
359 362
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 541
539 // Factory used to safely scope delayed calls to ShutdownHost(). 542 // Factory used to safely scope delayed calls to ShutdownHost().
540 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 543 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
541 544
542 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 545 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
543 }; 546 };
544 547
545 } // namespace content 548 } // namespace content
546 549
547 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 550 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698