| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 // Check whether the WebWidget has any touch event handlers registered. | 502 // Check whether the WebWidget has any touch event handlers registered. |
| 503 virtual void hasTouchEventHandlers(bool has_handlers); | 503 virtual void hasTouchEventHandlers(bool has_handlers); |
| 504 | 504 |
| 505 // Tell the browser about the actions permitted for a new touch point. | 505 // Tell the browser about the actions permitted for a new touch point. |
| 506 virtual void setTouchAction(blink::WebTouchAction touch_action); | 506 virtual void setTouchAction(blink::WebTouchAction touch_action); |
| 507 | 507 |
| 508 // Called when value of focused text field gets dirty, e.g. value is modified | 508 // Called when value of focused text field gets dirty, e.g. value is modified |
| 509 // by script, not by user input. | 509 // by script, not by user input. |
| 510 virtual void didUpdateTextOfFocusedElementByNonUserInput(); | 510 virtual void didUpdateTextOfFocusedElementByNonUserInput(); |
| 511 | 511 |
| 512 #if defined(OS_ANDROID) | |
| 513 // Checks if the selection root bounds have changed. If they have changed, the | |
| 514 // new value will be sent to the browser process. | |
| 515 virtual void UpdateSelectionRootBounds(); | |
| 516 #endif | |
| 517 | |
| 518 // Creates a 3D context associated with this view. | 512 // Creates a 3D context associated with this view. |
| 519 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(); | 513 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(); |
| 520 | 514 |
| 521 // Routing ID that allows us to communicate to the parent browser process | 515 // Routing ID that allows us to communicate to the parent browser process |
| 522 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 516 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
| 523 int32 routing_id_; | 517 int32 routing_id_; |
| 524 | 518 |
| 525 int32 surface_id_; | 519 int32 surface_id_; |
| 526 | 520 |
| 527 // We are responsible for destroying this object via its Close method. | 521 // We are responsible for destroying this object via its Close method. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 // Stores the current text input mode of |webwidget_|. | 618 // Stores the current text input mode of |webwidget_|. |
| 625 ui::TextInputMode text_input_mode_; | 619 ui::TextInputMode text_input_mode_; |
| 626 | 620 |
| 627 // Stores the current type of composition text rendering of |webwidget_|. | 621 // Stores the current type of composition text rendering of |webwidget_|. |
| 628 bool can_compose_inline_; | 622 bool can_compose_inline_; |
| 629 | 623 |
| 630 // Stores the current selection bounds. | 624 // Stores the current selection bounds. |
| 631 gfx::Rect selection_focus_rect_; | 625 gfx::Rect selection_focus_rect_; |
| 632 gfx::Rect selection_anchor_rect_; | 626 gfx::Rect selection_anchor_rect_; |
| 633 | 627 |
| 634 // Stores the current selection root bounds. | |
| 635 #if defined(OS_ANDROID) | |
| 636 gfx::Rect selection_root_rect_; | |
| 637 #endif | |
| 638 | |
| 639 // Stores the current composition character bounds. | 628 // Stores the current composition character bounds. |
| 640 std::vector<gfx::Rect> composition_character_bounds_; | 629 std::vector<gfx::Rect> composition_character_bounds_; |
| 641 | 630 |
| 642 // Stores the current composition range. | 631 // Stores the current composition range. |
| 643 gfx::Range composition_range_; | 632 gfx::Range composition_range_; |
| 644 | 633 |
| 645 // The kind of popup this widget represents, NONE if not a popup. | 634 // The kind of popup this widget represents, NONE if not a popup. |
| 646 blink::WebPopupType popup_type_; | 635 blink::WebPopupType popup_type_; |
| 647 | 636 |
| 648 // Holds all the needed plugin window moves for a scroll. | 637 // Holds all the needed plugin window moves for a scroll. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 721 |
| 733 ui::MenuSourceType context_menu_source_type_; | 722 ui::MenuSourceType context_menu_source_type_; |
| 734 gfx::Point touch_editing_context_menu_location_; | 723 gfx::Point touch_editing_context_menu_location_; |
| 735 | 724 |
| 736 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 725 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 737 }; | 726 }; |
| 738 | 727 |
| 739 } // namespace content | 728 } // namespace content |
| 740 | 729 |
| 741 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 730 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |