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 471 matching lines...) Loading... |
482 const ui::LatencyInfo& latency_info); | 482 const ui::LatencyInfo& latency_info); |
483 void OnCreateVideoAck(int32_t video_id); | 483 void OnCreateVideoAck(int32_t video_id); |
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 OnImeCommitText(const base::string16& text, |
493 const gfx::Range& replacement_range, | 493 const gfx::Range& replacement_range, |
494 bool keep_selection); | 494 int relative_cursor_pos); |
| 495 virtual void OnImeFinishComposingText(bool keep_selection); |
| 496 |
495 // Called when the device scale factor is changed, or the layer tree is | 497 // Called when the device scale factor is changed, or the layer tree is |
496 // initialized. | 498 // initialized. |
497 virtual void OnDeviceScaleFactorChanged(); | 499 virtual void OnDeviceScaleFactorChanged(); |
498 | 500 |
499 void OnRepaint(gfx::Size size_to_paint); | 501 void OnRepaint(gfx::Size size_to_paint); |
500 void OnSyntheticGestureCompleted(); | 502 void OnSyntheticGestureCompleted(); |
501 void OnSetTextDirection(blink::WebTextDirection direction); | 503 void OnSetTextDirection(blink::WebTextDirection direction); |
502 void OnGetFPS(); | 504 void OnGetFPS(); |
503 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 505 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
504 const gfx::Rect& window_screen_rect); | 506 const gfx::Rect& window_screen_rect); |
(...skipping 303 matching lines...) Loading... |
808 // This reference is set by the RenderFrame and is used to query the IME- | 810 // This reference is set by the RenderFrame and is used to query the IME- |
809 // related state from the plugin to later send to the browser. | 811 // related state from the plugin to later send to the browser. |
810 PepperPluginInstanceImpl* focused_pepper_plugin_; | 812 PepperPluginInstanceImpl* focused_pepper_plugin_; |
811 | 813 |
812 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 814 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
813 }; | 815 }; |
814 | 816 |
815 } // namespace content | 817 } // namespace content |
816 | 818 |
817 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 819 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |