| 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 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 text_direction_updated_ = false; | 1299 text_direction_updated_ = false; |
| 1300 text_direction_canceled_ = false; | 1300 text_direction_canceled_ = false; |
| 1301 } | 1301 } |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 void RenderWidgetHostImpl::SetInputMethodActive(bool activate) { | 1304 void RenderWidgetHostImpl::SetInputMethodActive(bool activate) { |
| 1305 input_method_active_ = activate; | 1305 input_method_active_ = activate; |
| 1306 Send(new ViewMsg_SetInputMethodActive(GetRoutingID(), activate)); | 1306 Send(new ViewMsg_SetInputMethodActive(GetRoutingID(), activate)); |
| 1307 } | 1307 } |
| 1308 | 1308 |
| 1309 void RenderWidgetHostImpl::CandidateWindowShow() { |
| 1310 Send(new ViewMsg_CandidateWindowShow(GetRoutingID())); |
| 1311 } |
| 1312 |
| 1313 void RenderWidgetHostImpl::CandidateWindowUpdate() { |
| 1314 Send(new ViewMsg_CandidateWindowUpdate(GetRoutingID())); |
| 1315 } |
| 1316 |
| 1317 void RenderWidgetHostImpl::CandidateWindowHide() { |
| 1318 Send(new ViewMsg_CandidateWindowHide(GetRoutingID())); |
| 1319 } |
| 1320 |
| 1309 void RenderWidgetHostImpl::ImeSetComposition( | 1321 void RenderWidgetHostImpl::ImeSetComposition( |
| 1310 const string16& text, | 1322 const string16& text, |
| 1311 const std::vector<blink::WebCompositionUnderline>& underlines, | 1323 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 1312 int selection_start, | 1324 int selection_start, |
| 1313 int selection_end) { | 1325 int selection_end) { |
| 1314 Send(new ViewMsg_ImeSetComposition( | 1326 Send(new ViewMsg_ImeSetComposition( |
| 1315 GetRoutingID(), text, underlines, selection_start, selection_end)); | 1327 GetRoutingID(), text, underlines, selection_start, selection_end)); |
| 1316 } | 1328 } |
| 1317 | 1329 |
| 1318 void RenderWidgetHostImpl::ImeConfirmComposition( | 1330 void RenderWidgetHostImpl::ImeConfirmComposition( |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2477 continue; | 2489 continue; |
| 2478 } | 2490 } |
| 2479 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); | 2491 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); |
| 2480 if (rwhi_set.insert(rwhi).second) | 2492 if (rwhi_set.insert(rwhi).second) |
| 2481 rwhi->FrameSwapped(latency_info); | 2493 rwhi->FrameSwapped(latency_info); |
| 2482 } | 2494 } |
| 2483 } | 2495 } |
| 2484 } | 2496 } |
| 2485 | 2497 |
| 2486 } // namespace content | 2498 } // namespace content |
| OLD | NEW |