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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 void OnUpdateVideoAck(int32_t video_id); | 466 void OnUpdateVideoAck(int32_t video_id); |
467 void OnRequestMoveAck(); | 467 void OnRequestMoveAck(); |
468 virtual void OnImeSetComposition( | 468 virtual void OnImeSetComposition( |
469 const base::string16& text, | 469 const base::string16& text, |
470 const std::vector<blink::WebCompositionUnderline>& underlines, | 470 const std::vector<blink::WebCompositionUnderline>& underlines, |
471 const gfx::Range& replacement_range, | 471 const gfx::Range& replacement_range, |
472 int selection_start, | 472 int selection_start, |
473 int selection_end); | 473 int selection_end); |
474 virtual void OnImeConfirmComposition(const base::string16& text, | 474 virtual void OnImeConfirmComposition(const base::string16& text, |
475 const gfx::Range& replacement_range, | 475 const gfx::Range& replacement_range, |
476 bool keep_selection); | 476 bool keep_selection, |
| 477 int relative_cursor_pos); |
477 // Called when the device scale factor is changed, or the layer tree is | 478 // Called when the device scale factor is changed, or the layer tree is |
478 // initialized. | 479 // initialized. |
479 virtual void OnDeviceScaleFactorChanged(); | 480 virtual void OnDeviceScaleFactorChanged(); |
480 | 481 |
481 void OnRepaint(gfx::Size size_to_paint); | 482 void OnRepaint(gfx::Size size_to_paint); |
482 void OnSyntheticGestureCompleted(); | 483 void OnSyntheticGestureCompleted(); |
483 void OnSetTextDirection(blink::WebTextDirection direction); | 484 void OnSetTextDirection(blink::WebTextDirection direction); |
484 void OnGetFPS(); | 485 void OnGetFPS(); |
485 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 486 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
486 const gfx::Rect& window_screen_rect); | 487 const gfx::Rect& window_screen_rect); |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 // This reference is set by the RenderFrame and is used to query the IME- | 794 // This reference is set by the RenderFrame and is used to query the IME- |
794 // related state from the plugin to later send to the browser. | 795 // related state from the plugin to later send to the browser. |
795 PepperPluginInstanceImpl* focused_pepper_plugin_; | 796 PepperPluginInstanceImpl* focused_pepper_plugin_; |
796 | 797 |
797 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 798 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
798 }; | 799 }; |
799 | 800 |
800 } // namespace content | 801 } // namespace content |
801 | 802 |
802 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 803 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |