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

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

Issue 1265013003: Adds support for hittesting points on surface quads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 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_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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 InputEventAckState ack_result) {} 171 InputEventAckState ack_result) {}
172 172
173 virtual void DidOverscroll(const DidOverscrollParams& params) {} 173 virtual void DidOverscroll(const DidOverscrollParams& params) {}
174 174
175 virtual void DidStopFlinging() {} 175 virtual void DidStopFlinging() {}
176 176
177 // Returns the compositing surface ID namespace, or 0 if Surfaces are not 177 // Returns the compositing surface ID namespace, or 0 if Surfaces are not
178 // enabled. 178 // enabled.
179 virtual uint32_t GetSurfaceIdNamespace(); 179 virtual uint32_t GetSurfaceIdNamespace();
180 180
181 // When there are multiple RenderWidgetHostViews for a single page, input
182 // events need to be targeted to the correct one for handling. The following
183 // methods are invoked on the RenderWidgetHostView that should be able to
184 // properly handle the event (i.e. it has focus for keyboard events, or has
185 // been identified by hit testing mouse, touch or gesture events).
186 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point,
187 gfx::Point* transformed_point);
188
181 //---------------------------------------------------------------------------- 189 //----------------------------------------------------------------------------
182 // The following static methods are implemented by each platform. 190 // The following static methods are implemented by each platform.
183 191
184 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); 192 static void GetDefaultScreenInfo(blink::WebScreenInfo* results);
185 193
186 //---------------------------------------------------------------------------- 194 //----------------------------------------------------------------------------
187 // The following pure virtual methods are implemented by derived classes. 195 // The following pure virtual methods are implemented by derived classes.
188 196
189 // Perform all the initialization steps necessary for this object to represent 197 // Perform all the initialization steps necessary for this object to represent
190 // a popup (such as a <select> dropdown), then shows the popup at |pos|. 198 // a popup (such as a <select> dropdown), then shows the popup at |pos|.
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
416 424
417 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 425 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
418 426
419 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
420 }; 428 };
421 429
422 } // namespace content 430 } // namespace content
423 431
424 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698