| 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 const ui::LatencyInfo& latency_info); | 489 const ui::LatencyInfo& latency_info); |
| 490 void OnCreateVideoAck(int32_t video_id); | 490 void OnCreateVideoAck(int32_t video_id); |
| 491 void OnUpdateVideoAck(int32_t video_id); | 491 void OnUpdateVideoAck(int32_t video_id); |
| 492 void OnRequestMoveAck(); | 492 void OnRequestMoveAck(); |
| 493 virtual void OnImeSetComposition( | 493 virtual void OnImeSetComposition( |
| 494 const base::string16& text, | 494 const base::string16& text, |
| 495 const std::vector<blink::WebCompositionUnderline>& underlines, | 495 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 496 const gfx::Range& replacement_range, | 496 const gfx::Range& replacement_range, |
| 497 int selection_start, | 497 int selection_start, |
| 498 int selection_end); | 498 int selection_end); |
| 499 virtual void OnImeConfirmComposition(const base::string16& text, | 499 virtual void OnImeCommitText(const base::string16& text, |
| 500 const gfx::Range& replacement_range, | 500 const gfx::Range& replacement_range, |
| 501 bool keep_selection); | 501 int relative_cursor_pos); |
| 502 virtual void OnImeFinishComposingText(bool keep_selection); |
| 503 |
| 502 // Called when the device scale factor is changed, or the layer tree is | 504 // Called when the device scale factor is changed, or the layer tree is |
| 503 // initialized. | 505 // initialized. |
| 504 virtual void OnDeviceScaleFactorChanged(); | 506 virtual void OnDeviceScaleFactorChanged(); |
| 505 | 507 |
| 506 void OnRepaint(gfx::Size size_to_paint); | 508 void OnRepaint(gfx::Size size_to_paint); |
| 507 void OnSyntheticGestureCompleted(); | 509 void OnSyntheticGestureCompleted(); |
| 508 void OnSetTextDirection(blink::WebTextDirection direction); | 510 void OnSetTextDirection(blink::WebTextDirection direction); |
| 509 void OnGetFPS(); | 511 void OnGetFPS(); |
| 510 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 512 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
| 511 const gfx::Rect& window_screen_rect); | 513 const gfx::Rect& window_screen_rect); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 // Stores edit commands associated to the next key event. | 822 // Stores edit commands associated to the next key event. |
| 821 // Will be cleared as soon as the next key event is processed. | 823 // Will be cleared as soon as the next key event is processed. |
| 822 EditCommands edit_commands_; | 824 EditCommands edit_commands_; |
| 823 | 825 |
| 824 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 825 }; | 827 }; |
| 826 | 828 |
| 827 } // namespace content | 829 } // namespace content |
| 828 | 830 |
| 829 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |