Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: content/renderer/render_widget.h

Issue 7824037: Get surrounding text from webkit. This CL is for sharing code only. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698