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