| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // Called by OnHandleInputEvent() to notify subclasses that a touch event was | 476 // Called by OnHandleInputEvent() to notify subclasses that a touch event was |
| 477 // just handled. | 477 // just handled. |
| 478 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 478 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 479 | 479 |
| 480 // Check whether the WebWidget has any touch event handlers registered | 480 // Check whether the WebWidget has any touch event handlers registered |
| 481 // at the given point. | 481 // at the given point. |
| 482 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; | 482 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; |
| 483 | 483 |
| 484 // Creates a 3D context associated with this view. | 484 // Creates a 3D context associated with this view. |
| 485 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( | 485 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( |
| 486 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 486 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
| 487 CommandBufferProxyImpl** proxy); |
| 487 | 488 |
| 488 // Routing ID that allows us to communicate to the parent browser process | 489 // Routing ID that allows us to communicate to the parent browser process |
| 489 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 490 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
| 490 int32 routing_id_; | 491 int32 routing_id_; |
| 491 | 492 |
| 492 int32 surface_id_; | 493 int32 surface_id_; |
| 493 | 494 |
| 494 // We are responsible for destroying this object via its Close method. | 495 // We are responsible for destroying this object via its Close method. |
| 495 WebKit::WebWidget* webwidget_; | 496 WebKit::WebWidget* webwidget_; |
| 496 | 497 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 bool is_threaded_compositing_enabled_; | 688 bool is_threaded_compositing_enabled_; |
| 688 | 689 |
| 689 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 690 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 690 | 691 |
| 691 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 692 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 692 }; | 693 }; |
| 693 | 694 |
| 694 } // namespace content | 695 } // namespace content |
| 695 | 696 |
| 696 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 697 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |