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

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

Issue 84963003: Add candidatewindow* events related IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
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 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 text_direction_updated_ = false; 1303 text_direction_updated_ = false;
1304 text_direction_canceled_ = false; 1304 text_direction_canceled_ = false;
1305 } 1305 }
1306 } 1306 }
1307 1307
1308 void RenderWidgetHostImpl::SetInputMethodActive(bool activate) { 1308 void RenderWidgetHostImpl::SetInputMethodActive(bool activate) {
1309 input_method_active_ = activate; 1309 input_method_active_ = activate;
1310 Send(new ViewMsg_SetInputMethodActive(GetRoutingID(), activate)); 1310 Send(new ViewMsg_SetInputMethodActive(GetRoutingID(), activate));
1311 } 1311 }
1312 1312
1313 void RenderWidgetHostImpl::CandidateWindowShown() {
1314 Send(new ViewMsg_CandidateWindowShown(GetRoutingID()));
1315 }
1316
1317 void RenderWidgetHostImpl::CandidateWindowUpdated() {
1318 Send(new ViewMsg_CandidateWindowUpdated(GetRoutingID()));
1319 }
1320
1321 void RenderWidgetHostImpl::CandidateWindowHidden() {
1322 Send(new ViewMsg_CandidateWindowHidden(GetRoutingID()));
1323 }
1324
1313 void RenderWidgetHostImpl::ImeSetComposition( 1325 void RenderWidgetHostImpl::ImeSetComposition(
1314 const string16& text, 1326 const string16& text,
1315 const std::vector<blink::WebCompositionUnderline>& underlines, 1327 const std::vector<blink::WebCompositionUnderline>& underlines,
1316 int selection_start, 1328 int selection_start,
1317 int selection_end) { 1329 int selection_end) {
1318 Send(new ViewMsg_ImeSetComposition( 1330 Send(new ViewMsg_ImeSetComposition(
1319 GetRoutingID(), text, underlines, selection_start, selection_end)); 1331 GetRoutingID(), text, underlines, selection_start, selection_end));
1320 } 1332 }
1321 1333
1322 void RenderWidgetHostImpl::ImeConfirmComposition( 1334 void RenderWidgetHostImpl::ImeConfirmComposition(
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 continue; 2496 continue;
2485 } 2497 }
2486 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); 2498 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh);
2487 if (rwhi_set.insert(rwhi).second) 2499 if (rwhi_set.insert(rwhi).second)
2488 rwhi->FrameSwapped(latency_info); 2500 rwhi->FrameSwapped(latency_info);
2489 } 2501 }
2490 } 2502 }
2491 } 2503 }
2492 2504
2493 } // namespace content 2505 } // 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