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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 void set_next_paint_is_restore_ack(); | 273 void set_next_paint_is_restore_ack(); |
274 void set_next_paint_is_repaint_ack(); | 274 void set_next_paint_is_repaint_ack(); |
275 | 275 |
276 // Checks if the input method state and caret position have been changed. | 276 // Checks if the input method state and caret position have been changed. |
277 // If they are changed, the new value will be sent to the browser process. | 277 // If they are changed, the new value will be sent to the browser process. |
278 void UpdateInputMethod(); | 278 void UpdateInputMethod(); |
279 | 279 |
280 // Override point to obtain that the current input method state and caret | 280 // Override point to obtain that the current input method state and caret |
281 // position. | 281 // position. |
282 virtual ui::TextInputType GetTextInputType(); | 282 virtual ui::TextInputType GetTextInputType(); |
| 283 virtual gfx::Rect GetCaretBounds(); |
283 | 284 |
284 // Override point to obtain that the current input method state about | 285 // Override point to obtain that the current input method state about |
285 // composition text. | 286 // composition text. |
286 virtual bool CanComposeInline(); | 287 virtual bool CanComposeInline(); |
287 | 288 |
288 // Tells the renderer it does not have focus. Used to prevent us from getting | 289 // Tells the renderer it does not have focus. Used to prevent us from getting |
289 // the focus on our own when the browser did not focus us. | 290 // the focus on our own when the browser did not focus us. |
290 void ClearFocus(); | 291 void ClearFocus(); |
291 | 292 |
292 // Set the pending window rect. | 293 // Set the pending window rect. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 bool animation_task_posted_; | 446 bool animation_task_posted_; |
446 bool invalidation_task_posted_; | 447 bool invalidation_task_posted_; |
447 | 448 |
448 bool has_disable_gpu_vsync_switch_; | 449 bool has_disable_gpu_vsync_switch_; |
449 base::TimeTicks last_do_deferred_update_time_; | 450 base::TimeTicks last_do_deferred_update_time_; |
450 | 451 |
451 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 452 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
452 }; | 453 }; |
453 | 454 |
454 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 455 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |