Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: content/renderer/render_widget.h

Issue 2339793002: Handle newCursorPosition correctly for Android's commitText() (Closed)
Patch Set: Fix compile error (rebased on r418371) Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698