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

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

Issue 1489913003: Handle pointer-events: none in browser process hittesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: readding header Created 4 years, 11 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_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace media { 44 namespace media {
45 class VideoFrame; 45 class VideoFrame;
46 } 46 }
47 47
48 namespace blink { 48 namespace blink {
49 struct WebScreenInfo; 49 struct WebScreenInfo;
50 class WebMouseEvent; 50 class WebMouseEvent;
51 class WebMouseWheelEvent; 51 class WebMouseWheelEvent;
52 } 52 }
53 53
54 namespace cc {
55 class SurfaceHittestDelegate;
56 }
57
54 namespace ui { 58 namespace ui {
55 class LatencyInfo; 59 class LatencyInfo;
56 } 60 }
57 61
58 namespace content { 62 namespace content {
59 class BrowserAccessibilityDelegate; 63 class BrowserAccessibilityDelegate;
60 class BrowserAccessibilityManager; 64 class BrowserAccessibilityManager;
61 class SyntheticGesture; 65 class SyntheticGesture;
62 class SyntheticGestureTarget; 66 class SyntheticGestureTarget;
63 class WebCursor; 67 class WebCursor;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 193
190 // Returns the compositing surface ID namespace, or 0 if Surfaces are not 194 // Returns the compositing surface ID namespace, or 0 if Surfaces are not
191 // enabled. 195 // enabled.
192 virtual uint32_t GetSurfaceIdNamespace(); 196 virtual uint32_t GetSurfaceIdNamespace();
193 197
194 // When there are multiple RenderWidgetHostViews for a single page, input 198 // When there are multiple RenderWidgetHostViews for a single page, input
195 // events need to be targeted to the correct one for handling. The following 199 // events need to be targeted to the correct one for handling. The following
196 // methods are invoked on the RenderWidgetHostView that should be able to 200 // methods are invoked on the RenderWidgetHostView that should be able to
197 // properly handle the event (i.e. it has focus for keyboard events, or has 201 // properly handle the event (i.e. it has focus for keyboard events, or has
198 // been identified by hit testing mouse, touch or gesture events). 202 // been identified by hit testing mouse, touch or gesture events).
199 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, 203 virtual uint32_t SurfaceIdNamespaceAtPoint(
200 gfx::Point* transformed_point); 204 cc::SurfaceHittestDelegate* delegate,
205 const gfx::Point& point,
206 gfx::Point* transformed_point);
201 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} 207 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {}
202 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} 208 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {}
203 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} 209 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {}
204 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, 210 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event,
205 const ui::LatencyInfo& latency) {} 211 const ui::LatencyInfo& latency) {}
206 212
207 // If a RenderWidgetHost is dealing with points that are transformed from the 213 // If a RenderWidgetHost is dealing with points that are transformed from the
208 // root frame for a page (i.e. because its content is contained within 214 // root frame for a page (i.e. because its content is contained within
209 // that of another RenderWidgetHost), this provides a facility to convert 215 // that of another RenderWidgetHost), this provides a facility to convert
210 // a point from its own coordinate space to that of the root frame. 216 // a point from its own coordinate space to that of the root frame.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 base::OneShotTimer flush_input_timer_; 454 base::OneShotTimer flush_input_timer_;
449 455
450 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 456 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
451 457
452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 458 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
453 }; 459 };
454 460
455 } // namespace content 461 } // namespace content
456 462
457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 463 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698