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