| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); | 432 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); |
| 433 void OnDisableDeviceEmulation(); | 433 void OnDisableDeviceEmulation(); |
| 434 void OnColorProfile(const std::vector<char>& color_profile); | 434 void OnColorProfile(const std::vector<char>& color_profile); |
| 435 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | 435 void OnChangeResizeRect(const gfx::Rect& resizer_rect); |
| 436 virtual void OnWasHidden(); | 436 virtual void OnWasHidden(); |
| 437 virtual void OnWasShown(bool needs_repainting, | 437 virtual void OnWasShown(bool needs_repainting, |
| 438 const ui::LatencyInfo& latency_info); | 438 const ui::LatencyInfo& latency_info); |
| 439 void OnCreateVideoAck(int32 video_id); | 439 void OnCreateVideoAck(int32 video_id); |
| 440 void OnUpdateVideoAck(int32 video_id); | 440 void OnUpdateVideoAck(int32 video_id); |
| 441 void OnRequestMoveAck(); | 441 void OnRequestMoveAck(); |
| 442 void OnSetInputMethodActive(bool is_active); | |
| 443 virtual void OnImeSetComposition( | 442 virtual void OnImeSetComposition( |
| 444 const base::string16& text, | 443 const base::string16& text, |
| 445 const std::vector<blink::WebCompositionUnderline>& underlines, | 444 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 446 int selection_start, | 445 int selection_start, |
| 447 int selection_end); | 446 int selection_end); |
| 448 virtual void OnImeConfirmComposition(const base::string16& text, | 447 virtual void OnImeConfirmComposition(const base::string16& text, |
| 449 const gfx::Range& replacement_range, | 448 const gfx::Range& replacement_range, |
| 450 bool keep_selection); | 449 bool keep_selection); |
| 451 void OnRepaint(gfx::Size size_to_paint); | 450 void OnRepaint(gfx::Size size_to_paint); |
| 452 void OnSyntheticGestureCompleted(); | 451 void OnSyntheticGestureCompleted(); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 // Whether this RenderWidget is currently swapped out, such that the view is | 704 // Whether this RenderWidget is currently swapped out, such that the view is |
| 706 // being rendered by another process. If all RenderWidgets in a process are | 705 // being rendered by another process. If all RenderWidgets in a process are |
| 707 // swapped out, the process can exit. | 706 // swapped out, the process can exit. |
| 708 bool is_swapped_out_; | 707 bool is_swapped_out_; |
| 709 | 708 |
| 710 // TODO(simonhong): Remove this when we enable BeginFrame scheduling for | 709 // TODO(simonhong): Remove this when we enable BeginFrame scheduling for |
| 711 // OOPIF(crbug.com/471411). | 710 // OOPIF(crbug.com/471411). |
| 712 // Whether this RenderWidget is for an out-of-process iframe or not. | 711 // Whether this RenderWidget is for an out-of-process iframe or not. |
| 713 bool for_oopif_; | 712 bool for_oopif_; |
| 714 | 713 |
| 715 // Indicates if an input method is active in the browser process. | |
| 716 bool input_method_is_active_; | |
| 717 | |
| 718 // Stores information about the current text input. | 714 // Stores information about the current text input. |
| 719 blink::WebTextInputInfo text_input_info_; | 715 blink::WebTextInputInfo text_input_info_; |
| 720 | 716 |
| 721 // Stores the current text input type of |webwidget_|. | 717 // Stores the current text input type of |webwidget_|. |
| 722 ui::TextInputType text_input_type_; | 718 ui::TextInputType text_input_type_; |
| 723 | 719 |
| 724 // Stores the current text input mode of |webwidget_|. | 720 // Stores the current text input mode of |webwidget_|. |
| 725 ui::TextInputMode text_input_mode_; | 721 ui::TextInputMode text_input_mode_; |
| 726 | 722 |
| 727 // Stores the current text input flags of |webwidget_|. | 723 // Stores the current text input flags of |webwidget_|. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 ui::MenuSourceType context_menu_source_type_; | 822 ui::MenuSourceType context_menu_source_type_; |
| 827 bool has_host_context_menu_location_; | 823 bool has_host_context_menu_location_; |
| 828 gfx::Point host_context_menu_location_; | 824 gfx::Point host_context_menu_location_; |
| 829 | 825 |
| 830 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 831 }; | 827 }; |
| 832 | 828 |
| 833 } // namespace content | 829 } // namespace content |
| 834 | 830 |
| 835 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |