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

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

Issue 103403006: Implement Input Method related WebPlugin interface for browser plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add cancel/compositionrangechanged 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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 1097
1098 int64 RenderWidgetHostImpl::GetLatencyComponentId() { 1098 int64 RenderWidgetHostImpl::GetLatencyComponentId() {
1099 return GetRoutingID() | (static_cast<int64>(GetProcess()->GetID()) << 32); 1099 return GetRoutingID() | (static_cast<int64>(GetProcess()->GetID()) << 32);
1100 } 1100 }
1101 1101
1102 // static 1102 // static
1103 void RenderWidgetHostImpl::DisableResizeAckCheckForTesting() { 1103 void RenderWidgetHostImpl::DisableResizeAckCheckForTesting() {
1104 g_check_for_pending_resize_ack = false; 1104 g_check_for_pending_resize_ack = false;
1105 } 1105 }
1106 1106
1107 void RenderWidgetHostImpl::ChangeTextInputType(
1108 ui::TextInputType type,
1109 ui::TextInputMode input_mode,
1110 bool can_compose_inline) {
1111 OnTextInputTypeChanged(type, input_mode, can_compose_inline);
1112 }
1113
1114 void RenderWidgetHostImpl::CancelImeComposition() {
1115 OnImeCancelComposition();
1116 }
1117
1118 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA)
1119 void RenderWidgetHostImpl::ChangeImeCompositionRange(
1120 const gfx::Range& range,
1121 const std::vector<gfx::Rect>& character_bounds) {
1122 OnImeCompositionRangeChanged(range, character_bounds);
1123 }
1124 #endif
1125
1107 ui::LatencyInfo RenderWidgetHostImpl::CreateRWHLatencyInfoIfNotExist( 1126 ui::LatencyInfo RenderWidgetHostImpl::CreateRWHLatencyInfoIfNotExist(
1108 const ui::LatencyInfo* original) { 1127 const ui::LatencyInfo* original) {
1109 ui::LatencyInfo info; 1128 ui::LatencyInfo info;
1110 if (original) 1129 if (original)
1111 info = *original; 1130 info = *original;
1112 // In Aura, gesture event will already carry its original touch event's 1131 // In Aura, gesture event will already carry its original touch event's
1113 // INPUT_EVENT_LATENCY_RWH_COMPONENT. 1132 // INPUT_EVENT_LATENCY_RWH_COMPONENT.
1114 if (!info.FindLatency(ui::INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 1133 if (!info.FindLatency(ui::INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT,
1115 GetLatencyComponentId(), 1134 GetLatencyComponentId(),
1116 NULL)) { 1135 NULL)) {
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 continue; 2485 continue;
2467 } 2486 }
2468 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); 2487 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh);
2469 if (rwhi_set.insert(rwhi).second) 2488 if (rwhi_set.insert(rwhi).second)
2470 rwhi->FrameSwapped(latency_info); 2489 rwhi->FrameSwapped(latency_info);
2471 } 2490 }
2472 } 2491 }
2473 } 2492 }
2474 2493
2475 } // namespace content 2494 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698