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

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: For yosin@'s 2nd review 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
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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 void OnUpdateVideoAck(int32_t video_id); 467 void OnUpdateVideoAck(int32_t video_id);
468 void OnRequestMoveAck(); 468 void OnRequestMoveAck();
469 virtual void OnImeSetComposition( 469 virtual void OnImeSetComposition(
470 const base::string16& text, 470 const base::string16& text,
471 const std::vector<blink::WebCompositionUnderline>& underlines, 471 const std::vector<blink::WebCompositionUnderline>& underlines,
472 const gfx::Range& replacement_range, 472 const gfx::Range& replacement_range,
473 int selection_start, 473 int selection_start,
474 int selection_end); 474 int selection_end);
475 virtual void OnImeConfirmComposition(const base::string16& text, 475 virtual void OnImeConfirmComposition(const base::string16& text,
476 const gfx::Range& replacement_range, 476 const gfx::Range& replacement_range,
477 bool keep_selection); 477 bool keep_selection,
478 int relative_cursor_pos);
478 // Called when the device scale factor is changed, or the layer tree is 479 // Called when the device scale factor is changed, or the layer tree is
479 // initialized. 480 // initialized.
480 virtual void OnDeviceScaleFactorChanged(); 481 virtual void OnDeviceScaleFactorChanged();
481 482
482 void OnRepaint(gfx::Size size_to_paint); 483 void OnRepaint(gfx::Size size_to_paint);
483 void OnSyntheticGestureCompleted(); 484 void OnSyntheticGestureCompleted();
484 void OnSetTextDirection(blink::WebTextDirection direction); 485 void OnSetTextDirection(blink::WebTextDirection direction);
485 void OnGetFPS(); 486 void OnGetFPS();
486 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 487 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
487 const gfx::Rect& window_screen_rect); 488 const gfx::Rect& window_screen_rect);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 // This reference is set by the RenderFrame and is used to query the IME- 795 // This reference is set by the RenderFrame and is used to query the IME-
795 // related state from the plugin to later send to the browser. 796 // related state from the plugin to later send to the browser.
796 PepperPluginInstanceImpl* focused_pepper_plugin_; 797 PepperPluginInstanceImpl* focused_pepper_plugin_;
797 798
798 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 799 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
799 }; 800 };
800 801
801 } // namespace content 802 } // namespace content
802 803
803 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 804 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698