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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 // Check whether the WebWidget has any touch event handlers registered | 525 // Check whether the WebWidget has any touch event handlers registered |
526 // at the given point. | 526 // at the given point. |
527 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; | 527 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; |
528 | 528 |
529 // Check whether the WebWidget has any touch event handlers registered. | 529 // Check whether the WebWidget has any touch event handlers registered. |
530 virtual void hasTouchEventHandlers(bool has_handlers); | 530 virtual void hasTouchEventHandlers(bool has_handlers); |
531 | 531 |
532 // Tell the browser about the actions permitted for a new touch point. | 532 // Tell the browser about the actions permitted for a new touch point. |
533 virtual void setTouchAction(blink::WebTouchAction touch_action); | 533 virtual void setTouchAction(blink::WebTouchAction touch_action); |
534 | 534 |
535 #if defined(OS_ANDROID) | |
536 // Checks if the selection root bounds have changed. If they have changed, the | |
537 // new value will be sent to the browser process. | |
538 virtual void UpdateSelectionRootBounds() {} | |
jochen (gone - plz use gerrit)
2014/03/12 13:01:00
function body should be in .cc file
mlamouri (slow - plz ping)
2014/03/12 14:24:11
Done.
| |
539 #endif | |
540 | |
535 // Creates a 3D context associated with this view. | 541 // Creates a 3D context associated with this view. |
536 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D( | 542 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D( |
537 const blink::WebGraphicsContext3D::Attributes& attributes); | 543 const blink::WebGraphicsContext3D::Attributes& attributes); |
538 | 544 |
539 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap); | 545 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap); |
540 | 546 |
541 // Routing ID that allows us to communicate to the parent browser process | 547 // Routing ID that allows us to communicate to the parent browser process |
542 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 548 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
543 int32 routing_id_; | 549 int32 routing_id_; |
544 | 550 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
668 // Stores the current text input mode of |webwidget_|. | 674 // Stores the current text input mode of |webwidget_|. |
669 ui::TextInputMode text_input_mode_; | 675 ui::TextInputMode text_input_mode_; |
670 | 676 |
671 // Stores the current type of composition text rendering of |webwidget_|. | 677 // Stores the current type of composition text rendering of |webwidget_|. |
672 bool can_compose_inline_; | 678 bool can_compose_inline_; |
673 | 679 |
674 // Stores the current selection bounds. | 680 // Stores the current selection bounds. |
675 gfx::Rect selection_focus_rect_; | 681 gfx::Rect selection_focus_rect_; |
676 gfx::Rect selection_anchor_rect_; | 682 gfx::Rect selection_anchor_rect_; |
677 | 683 |
684 // Stores the current selection root bounds. | |
685 #if defined(OS_ANDROID) | |
686 gfx::Rect selection_root_rect_; | |
687 #endif | |
688 | |
678 // Stores the current composition character bounds. | 689 // Stores the current composition character bounds. |
679 std::vector<gfx::Rect> composition_character_bounds_; | 690 std::vector<gfx::Rect> composition_character_bounds_; |
680 | 691 |
681 // Stores the current composition range. | 692 // Stores the current composition range. |
682 gfx::Range composition_range_; | 693 gfx::Range composition_range_; |
683 | 694 |
684 // The kind of popup this widget represents, NONE if not a popup. | 695 // The kind of popup this widget represents, NONE if not a popup. |
685 blink::WebPopupType popup_type_; | 696 blink::WebPopupType popup_type_; |
686 | 697 |
687 // Holds all the needed plugin window moves for a scroll. | 698 // Holds all the needed plugin window moves for a scroll. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
784 | 795 |
785 ui::MenuSourceType context_menu_source_type_; | 796 ui::MenuSourceType context_menu_source_type_; |
786 gfx::Point touch_editing_context_menu_location_; | 797 gfx::Point touch_editing_context_menu_location_; |
787 | 798 |
788 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 799 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
789 }; | 800 }; |
790 | 801 |
791 } // namespace content | 802 } // namespace content |
792 | 803 |
793 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 804 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |