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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

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
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 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 const base::string16& text, 1630 const base::string16& text,
1631 const std::vector<blink::WebCompositionUnderline>& underlines, 1631 const std::vector<blink::WebCompositionUnderline>& underlines,
1632 const gfx::Range& replacement_range, 1632 const gfx::Range& replacement_range,
1633 int selection_start, 1633 int selection_start,
1634 int selection_end) { 1634 int selection_end) {
1635 Send(new InputMsg_ImeSetComposition( 1635 Send(new InputMsg_ImeSetComposition(
1636 GetRoutingID(), text, underlines, replacement_range, 1636 GetRoutingID(), text, underlines, replacement_range,
1637 selection_start, selection_end)); 1637 selection_start, selection_end));
1638 } 1638 }
1639 1639
1640 void RenderWidgetHostImpl::ImeCommitText(const base::string16& text, 1640 void RenderWidgetHostImpl::ImeCommitText(
1641 const gfx::Range& replacement_range, 1641 const base::string16& text,
1642 int relative_cursor_pos) { 1642 const std::vector<blink::WebCompositionUnderline>& underlines,
1643 Send(new InputMsg_ImeCommitText(GetRoutingID(), text, replacement_range, 1643 const gfx::Range& replacement_range,
1644 relative_cursor_pos)); 1644 int relative_cursor_pos) {
1645 Send(new InputMsg_ImeCommitText(GetRoutingID(), text, underlines,
1646 replacement_range, relative_cursor_pos));
1645 } 1647 }
1646 1648
1647 void RenderWidgetHostImpl::ImeFinishComposingText(bool keep_selection) { 1649 void RenderWidgetHostImpl::ImeFinishComposingText(bool keep_selection) {
1648 Send(new InputMsg_ImeFinishComposingText(GetRoutingID(), keep_selection)); 1650 Send(new InputMsg_ImeFinishComposingText(GetRoutingID(), keep_selection));
1649 } 1651 }
1650 1652
1651 void RenderWidgetHostImpl::ImeCancelComposition() { 1653 void RenderWidgetHostImpl::ImeCancelComposition() {
1652 Send(new InputMsg_ImeSetComposition(GetRoutingID(), base::string16(), 1654 Send(new InputMsg_ImeSetComposition(GetRoutingID(), base::string16(),
1653 std::vector<blink::WebCompositionUnderline>(), 1655 std::vector<blink::WebCompositionUnderline>(),
1654 gfx::Range::InvalidRange(), 0, 0)); 1656 gfx::Range::InvalidRange(), 0, 0));
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
2524 // different from the receiver's. 2526 // different from the receiver's.
2525 file_system_file.url = 2527 file_system_file.url =
2526 GURL(storage::GetIsolatedFileSystemRootURIString( 2528 GURL(storage::GetIsolatedFileSystemRootURIString(
2527 file_system_url.origin(), filesystem_id, std::string()) 2529 file_system_url.origin(), filesystem_id, std::string())
2528 .append(register_name)); 2530 .append(register_name));
2529 file_system_file.filesystem_id = filesystem_id; 2531 file_system_file.filesystem_id = filesystem_id;
2530 } 2532 }
2531 } 2533 }
2532 2534
2533 } // namespace content 2535 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698