| OLD | NEW |
| 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 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 const base::string16& text, | 1411 const base::string16& text, |
| 1412 const std::vector<blink::WebCompositionUnderline>& underlines, | 1412 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 1413 const gfx::Range& replacement_range, | 1413 const gfx::Range& replacement_range, |
| 1414 int selection_start, | 1414 int selection_start, |
| 1415 int selection_end) { | 1415 int selection_end) { |
| 1416 Send(new InputMsg_ImeSetComposition( | 1416 Send(new InputMsg_ImeSetComposition( |
| 1417 GetRoutingID(), text, underlines, replacement_range, | 1417 GetRoutingID(), text, underlines, replacement_range, |
| 1418 selection_start, selection_end)); | 1418 selection_start, selection_end)); |
| 1419 } | 1419 } |
| 1420 | 1420 |
| 1421 void RenderWidgetHostImpl::ImeConfirmComposition( | 1421 void RenderWidgetHostImpl::ImeCommitText(const base::string16& text, |
| 1422 const base::string16& text, | 1422 const gfx::Range& replacement_range, |
| 1423 const gfx::Range& replacement_range, | 1423 int relative_cursor_pos) { |
| 1424 bool keep_selection) { | 1424 Send(new InputMsg_ImeCommitText(GetRoutingID(), text, replacement_range, |
| 1425 Send(new InputMsg_ImeConfirmComposition( | 1425 relative_cursor_pos)); |
| 1426 GetRoutingID(), text, replacement_range, keep_selection)); | 1426 } |
| 1427 |
| 1428 void RenderWidgetHostImpl::ImeFinishComposingText(bool keep_selection) { |
| 1429 Send(new InputMsg_ImeFinishComposingText(GetRoutingID(), keep_selection)); |
| 1427 } | 1430 } |
| 1428 | 1431 |
| 1429 void RenderWidgetHostImpl::ImeCancelComposition() { | 1432 void RenderWidgetHostImpl::ImeCancelComposition() { |
| 1430 Send(new InputMsg_ImeSetComposition(GetRoutingID(), base::string16(), | 1433 Send(new InputMsg_ImeSetComposition(GetRoutingID(), base::string16(), |
| 1431 std::vector<blink::WebCompositionUnderline>(), | 1434 std::vector<blink::WebCompositionUnderline>(), |
| 1432 gfx::Range::InvalidRange(), 0, 0)); | 1435 gfx::Range::InvalidRange(), 0, 0)); |
| 1433 } | 1436 } |
| 1434 | 1437 |
| 1435 void RenderWidgetHostImpl::RejectMouseLockOrUnlockIfNecessary() { | 1438 void RenderWidgetHostImpl::RejectMouseLockOrUnlockIfNecessary() { |
| 1436 DCHECK(!pending_mouse_lock_request_ || !IsMouseLocked()); | 1439 DCHECK(!pending_mouse_lock_request_ || !IsMouseLocked()); |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; | 2211 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; |
| 2209 } | 2212 } |
| 2210 | 2213 |
| 2211 BrowserAccessibilityManager* | 2214 BrowserAccessibilityManager* |
| 2212 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2215 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2213 return delegate_ ? | 2216 return delegate_ ? |
| 2214 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; | 2217 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; |
| 2215 } | 2218 } |
| 2216 | 2219 |
| 2217 } // namespace content | 2220 } // namespace content |
| OLD | NEW |