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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 // just handled. | 538 // just handled. |
539 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 539 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
540 | 540 |
541 // Check whether the WebWidget has any touch event handlers registered | 541 // Check whether the WebWidget has any touch event handlers registered |
542 // at the given point. | 542 // at the given point. |
543 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; | 543 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; |
544 | 544 |
545 // Check whether the WebWidget has any touch event handlers registered. | 545 // Check whether the WebWidget has any touch event handlers registered. |
546 virtual void hasTouchEventHandlers(bool has_handlers); | 546 virtual void hasTouchEventHandlers(bool has_handlers); |
547 | 547 |
| 548 // Tell the browser about the actions permitted for a new touch point. |
| 549 virtual void setTouchAction(int touchId, bool touchActionDelayed, |
| 550 TouchAction touchAction); |
| 551 |
548 // Creates a 3D context associated with this view. | 552 // Creates a 3D context associated with this view. |
549 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D( | 553 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D( |
550 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 554 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
551 | 555 |
552 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap); | 556 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap); |
553 | 557 |
554 void ScheduleCompositeImpl(bool force_redraw); | 558 void ScheduleCompositeImpl(bool force_redraw); |
555 | 559 |
556 // Routing ID that allows us to communicate to the parent browser process | 560 // Routing ID that allows us to communicate to the parent browser process |
557 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 561 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 797 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
794 | 798 |
795 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 799 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
796 | 800 |
797 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 801 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
798 }; | 802 }; |
799 | 803 |
800 } // namespace content | 804 } // namespace content |
801 | 805 |
802 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 806 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |