| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 void OnSwapBuffersAborted(); | 236 void OnSwapBuffersAborted(); |
| 237 | 237 |
| 238 // Checks if the text input state and compose inline mode have been changed. | 238 // Checks if the text input state and compose inline mode have been changed. |
| 239 // If they are changed, the new value will be sent to the browser process. | 239 // If they are changed, the new value will be sent to the browser process. |
| 240 void UpdateTextInputType(); | 240 void UpdateTextInputType(); |
| 241 | 241 |
| 242 // Checks if the selection bounds have been changed. If they are changed, | 242 // Checks if the selection bounds have been changed. If they are changed, |
| 243 // the new value will be sent to the browser process. | 243 // the new value will be sent to the browser process. |
| 244 void UpdateSelectionBounds(); | 244 void UpdateSelectionBounds(); |
| 245 | 245 |
| 246 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end); | 246 // Returns false if the selection bounds should not be updated. |
| 247 virtual bool GetSelectionBounds(gfx::Rect* start, gfx::Rect* end); |
| 247 | 248 |
| 248 void OnShowHostContextMenu(ContextMenuParams* params); | 249 void OnShowHostContextMenu(ContextMenuParams* params); |
| 249 | 250 |
| 250 #if defined(OS_ANDROID) || defined(USE_AURA) | 251 #if defined(OS_ANDROID) || defined(USE_AURA) |
| 251 enum ShowIme { | 252 enum ShowIme { |
| 252 SHOW_IME_IF_NEEDED, | 253 SHOW_IME_IF_NEEDED, |
| 253 NO_SHOW_IME, | 254 NO_SHOW_IME, |
| 254 }; | 255 }; |
| 255 | 256 |
| 256 enum ChangeSource { | 257 enum ChangeSource { |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 618 |
| 618 // Stores the current text input mode of |webwidget_|. | 619 // Stores the current text input mode of |webwidget_|. |
| 619 ui::TextInputMode text_input_mode_; | 620 ui::TextInputMode text_input_mode_; |
| 620 | 621 |
| 621 // Stores the current type of composition text rendering of |webwidget_|. | 622 // Stores the current type of composition text rendering of |webwidget_|. |
| 622 bool can_compose_inline_; | 623 bool can_compose_inline_; |
| 623 | 624 |
| 624 // Stores the current selection bounds. | 625 // Stores the current selection bounds. |
| 625 gfx::Rect selection_focus_rect_; | 626 gfx::Rect selection_focus_rect_; |
| 626 gfx::Rect selection_anchor_rect_; | 627 gfx::Rect selection_anchor_rect_; |
| 628 bool enable_composited_selection_bounds_; |
| 627 | 629 |
| 628 // Stores the current composition character bounds. | 630 // Stores the current composition character bounds. |
| 629 std::vector<gfx::Rect> composition_character_bounds_; | 631 std::vector<gfx::Rect> composition_character_bounds_; |
| 630 | 632 |
| 631 // Stores the current composition range. | 633 // Stores the current composition range. |
| 632 gfx::Range composition_range_; | 634 gfx::Range composition_range_; |
| 633 | 635 |
| 634 // The kind of popup this widget represents, NONE if not a popup. | 636 // The kind of popup this widget represents, NONE if not a popup. |
| 635 blink::WebPopupType popup_type_; | 637 blink::WebPopupType popup_type_; |
| 636 | 638 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 723 |
| 722 ui::MenuSourceType context_menu_source_type_; | 724 ui::MenuSourceType context_menu_source_type_; |
| 723 gfx::Point touch_editing_context_menu_location_; | 725 gfx::Point touch_editing_context_menu_location_; |
| 724 | 726 |
| 725 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 727 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 726 }; | 728 }; |
| 727 | 729 |
| 728 } // namespace content | 730 } // namespace content |
| 729 | 731 |
| 730 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |