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

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

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Rebase Created 3 years, 11 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 const ui::LatencyInfo& latency_info); 486 const ui::LatencyInfo& latency_info);
487 void OnCreateVideoAck(int32_t video_id); 487 void OnCreateVideoAck(int32_t video_id);
488 void OnUpdateVideoAck(int32_t video_id); 488 void OnUpdateVideoAck(int32_t video_id);
489 void OnRequestMoveAck(); 489 void OnRequestMoveAck();
490 virtual void OnImeSetComposition( 490 virtual void OnImeSetComposition(
491 const base::string16& text, 491 const base::string16& text,
492 const std::vector<blink::WebCompositionUnderline>& underlines, 492 const std::vector<blink::WebCompositionUnderline>& underlines,
493 const gfx::Range& replacement_range, 493 const gfx::Range& replacement_range,
494 int selection_start, 494 int selection_start,
495 int selection_end); 495 int selection_end);
496 virtual void OnImeCommitText(const base::string16& text, 496 virtual void OnImeCommitText(
497 const gfx::Range& replacement_range, 497 const base::string16& text,
498 int relative_cursor_pos); 498 const std::vector<blink::WebCompositionUnderline>& underlines,
499 const gfx::Range& replacement_range,
500 int relative_cursor_pos);
499 virtual void OnImeFinishComposingText(bool keep_selection); 501 virtual void OnImeFinishComposingText(bool keep_selection);
500 502
501 // Called when the device scale factor is changed, or the layer tree is 503 // Called when the device scale factor is changed, or the layer tree is
502 // initialized. 504 // initialized.
503 virtual void OnDeviceScaleFactorChanged(); 505 virtual void OnDeviceScaleFactorChanged();
504 506
505 void OnRepaint(gfx::Size size_to_paint); 507 void OnRepaint(gfx::Size size_to_paint);
506 void OnSyntheticGestureCompleted(); 508 void OnSyntheticGestureCompleted();
507 void OnSetTextDirection(blink::WebTextDirection direction); 509 void OnSetTextDirection(blink::WebTextDirection direction);
508 void OnGetFPS(); 510 void OnGetFPS();
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 // being handled. If the current event results in starting a drag/drop 837 // being handled. If the current event results in starting a drag/drop
836 // session, this info is sent to the browser along with other drag/drop info. 838 // session, this info is sent to the browser along with other drag/drop info.
837 DragEventSourceInfo possible_drag_event_info_; 839 DragEventSourceInfo possible_drag_event_info_;
838 840
839 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 841 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
840 }; 842 };
841 843
842 } // namespace content 844 } // namespace content
843 845
844 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 846 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698