diff options
Diffstat (limited to 'content/renderer/text_input_client_observer.cc')
-rw-r--r-- | content/renderer/text_input_client_observer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/renderer/text_input_client_observer.cc b/content/renderer/text_input_client_observer.cc index eda58f2..b97be4a 100644 --- a/content/renderer/text_input_client_observer.cc +++ b/content/renderer/text_input_client_observer.cc @@ -65,7 +65,8 @@ void TextInputClientObserver::OnStringAtPoint(gfx::Point point) { void TextInputClientObserver::OnCharacterIndexForPoint(gfx::Point point) { blink::WebPoint web_point(point); - size_t index = webview()->focusedFrame()->characterIndexForPoint(web_point); + uint32_t index = static_cast<uint32_t>( + webview()->focusedFrame()->characterIndexForPoint(web_point)); Send(new TextInputClientReplyMsg_GotCharacterIndexForPoint(routing_id(), index)); } |