OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 // being rendered by another process. If all RenderWidgets in a process are | 392 // being rendered by another process. If all RenderWidgets in a process are |
393 // swapped out, the process can exit. | 393 // swapped out, the process can exit. |
394 bool is_swapped_out_; | 394 bool is_swapped_out_; |
395 | 395 |
396 // Indicates if an input method is active in the browser process. | 396 // Indicates if an input method is active in the browser process. |
397 bool input_method_is_active_; | 397 bool input_method_is_active_; |
398 | 398 |
399 // Stores the current text input type of |webwidget_|. | 399 // Stores the current text input type of |webwidget_|. |
400 ui::TextInputType text_input_type_; | 400 ui::TextInputType text_input_type_; |
401 | 401 |
| 402 // Stores the current surrounding text of |webwidget_|. |
| 403 string16 surrounding_; |
| 404 |
| 405 // Stores the current cursor in surrounding text of |webwidget_|. |
| 406 size_t cursor_; |
| 407 |
| 408 // Stores the current anchor in surrounding text of |webwidget_|. |
| 409 size_t anchor_; |
| 410 |
| 411 |
402 // Stores the current type of composition text rendering of |webwidget_|. | 412 // Stores the current type of composition text rendering of |webwidget_|. |
403 bool can_compose_inline_; | 413 bool can_compose_inline_; |
404 | 414 |
405 // Stores the current caret bounds of input focus. | 415 // Stores the current caret bounds of input focus. |
406 WebKit::WebRect caret_bounds_; | 416 WebKit::WebRect caret_bounds_; |
407 | 417 |
408 // The kind of popup this widget represents, NONE if not a popup. | 418 // The kind of popup this widget represents, NONE if not a popup. |
409 WebKit::WebPopupType popup_type_; | 419 WebKit::WebPopupType popup_type_; |
410 | 420 |
411 // Holds all the needed plugin window moves for a scroll. | 421 // Holds all the needed plugin window moves for a scroll. |
(...skipping 22 matching lines...) Expand all Loading... |
434 bool animation_task_posted_; | 444 bool animation_task_posted_; |
435 bool invalidation_task_posted_; | 445 bool invalidation_task_posted_; |
436 | 446 |
437 bool has_disable_gpu_vsync_switch_; | 447 bool has_disable_gpu_vsync_switch_; |
438 base::TimeTicks last_do_deferred_update_time_; | 448 base::TimeTicks last_do_deferred_update_time_; |
439 | 449 |
440 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 450 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
441 }; | 451 }; |
442 | 452 |
443 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 453 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |