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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 void OnUpdateVideoAck(int32_t video_id); | 484 void OnUpdateVideoAck(int32_t video_id); |
485 void OnRequestMoveAck(); | 485 void OnRequestMoveAck(); |
486 virtual void OnImeSetComposition( | 486 virtual void OnImeSetComposition( |
487 const base::string16& text, | 487 const base::string16& text, |
488 const std::vector<blink::WebCompositionUnderline>& underlines, | 488 const std::vector<blink::WebCompositionUnderline>& underlines, |
489 const gfx::Range& replacement_range, | 489 const gfx::Range& replacement_range, |
490 int selection_start, | 490 int selection_start, |
491 int selection_end); | 491 int selection_end); |
492 virtual void OnImeConfirmComposition(const base::string16& text, | 492 virtual void OnImeConfirmComposition(const base::string16& text, |
493 const gfx::Range& replacement_range, | 493 const gfx::Range& replacement_range, |
494 bool keep_selection); | 494 bool keep_selection, |
| 495 int relative_cursor_pos); |
495 // Called when the device scale factor is changed, or the layer tree is | 496 // Called when the device scale factor is changed, or the layer tree is |
496 // initialized. | 497 // initialized. |
497 virtual void OnDeviceScaleFactorChanged(); | 498 virtual void OnDeviceScaleFactorChanged(); |
498 | 499 |
499 void OnRepaint(gfx::Size size_to_paint); | 500 void OnRepaint(gfx::Size size_to_paint); |
500 void OnSyntheticGestureCompleted(); | 501 void OnSyntheticGestureCompleted(); |
501 void OnSetTextDirection(blink::WebTextDirection direction); | 502 void OnSetTextDirection(blink::WebTextDirection direction); |
502 void OnGetFPS(); | 503 void OnGetFPS(); |
503 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 504 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
504 const gfx::Rect& window_screen_rect); | 505 const gfx::Rect& window_screen_rect); |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 // This reference is set by the RenderFrame and is used to query the IME- | 812 // This reference is set by the RenderFrame and is used to query the IME- |
812 // related state from the plugin to later send to the browser. | 813 // related state from the plugin to later send to the browser. |
813 PepperPluginInstanceImpl* focused_pepper_plugin_; | 814 PepperPluginInstanceImpl* focused_pepper_plugin_; |
814 | 815 |
815 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 816 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
816 }; | 817 }; |
817 | 818 |
818 } // namespace content | 819 } // namespace content |
819 | 820 |
820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 821 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |