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