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

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

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 void OnUpdateVideoAck(int32_t video_id); 451 void OnUpdateVideoAck(int32_t video_id);
452 void OnRequestMoveAck(); 452 void OnRequestMoveAck();
453 virtual void OnImeSetComposition( 453 virtual void OnImeSetComposition(
454 const base::string16& text, 454 const base::string16& text,
455 const std::vector<blink::WebCompositionUnderline>& underlines, 455 const std::vector<blink::WebCompositionUnderline>& underlines,
456 const gfx::Range& replacement_range, 456 const gfx::Range& replacement_range,
457 int selection_start, 457 int selection_start,
458 int selection_end); 458 int selection_end);
459 virtual void OnImeConfirmComposition(const base::string16& text, 459 virtual void OnImeConfirmComposition(const base::string16& text,
460 const gfx::Range& replacement_range, 460 const gfx::Range& replacement_range,
461 bool keep_selection); 461 bool keep_selection,
462 int new_cursor_pos);
462 // Called when the device scale factor is changed, or the layer tree is 463 // Called when the device scale factor is changed, or the layer tree is
463 // initialized. 464 // initialized.
464 virtual void OnDeviceScaleFactorChanged(); 465 virtual void OnDeviceScaleFactorChanged();
465 466
466 void OnRepaint(gfx::Size size_to_paint); 467 void OnRepaint(gfx::Size size_to_paint);
467 void OnSyntheticGestureCompleted(); 468 void OnSyntheticGestureCompleted();
468 void OnSetTextDirection(blink::WebTextDirection direction); 469 void OnSetTextDirection(blink::WebTextDirection direction);
469 void OnGetFPS(); 470 void OnGetFPS();
470 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 471 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
471 const gfx::Rect& window_screen_rect); 472 const gfx::Rect& window_screen_rect);
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 767
767 // Indicates whether this widget has focus. 768 // Indicates whether this widget has focus.
768 bool has_focus_; 769 bool has_focus_;
769 770
770 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 771 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
771 }; 772 };
772 773
773 } // namespace content 774 } // namespace content
774 775
775 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 776 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698