| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 | 506 |
| 507 // Check whether the WebWidget has any touch event handlers registered | 507 // Check whether the WebWidget has any touch event handlers registered |
| 508 // at the given point. | 508 // at the given point. |
| 509 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; | 509 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; |
| 510 | 510 |
| 511 // Check whether the WebWidget has any touch event handlers registered. | 511 // Check whether the WebWidget has any touch event handlers registered. |
| 512 virtual void hasTouchEventHandlers(bool has_handlers); | 512 virtual void hasTouchEventHandlers(bool has_handlers); |
| 513 | 513 |
| 514 // Creates a 3D context associated with this view. | 514 // Creates a 3D context associated with this view. |
| 515 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D( | 515 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D( |
| 516 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 516 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
| 517 size_t max_bytes_pending_upload); |
| 517 | 518 |
| 518 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap); | 519 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap); |
| 519 | 520 |
| 520 // Routing ID that allows us to communicate to the parent browser process | 521 // Routing ID that allows us to communicate to the parent browser process |
| 521 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 522 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
| 522 int32 routing_id_; | 523 int32 routing_id_; |
| 523 | 524 |
| 524 int32 surface_id_; | 525 int32 surface_id_; |
| 525 | 526 |
| 526 // We are responsible for destroying this object via its Close method. | 527 // We are responsible for destroying this object via its Close method. |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 #endif | 740 #endif |
| 740 | 741 |
| 741 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 742 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 742 | 743 |
| 743 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 744 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 744 }; | 745 }; |
| 745 | 746 |
| 746 } // namespace content | 747 } // namespace content |
| 747 | 748 |
| 748 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 749 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |