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

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

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