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

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

Issue 10962011: Allow tap gestures to open the IME on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 months 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
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void RenderWidgetHostViewAndroid::TextInputStateChanged( 192 void RenderWidgetHostViewAndroid::TextInputStateChanged(
193 const ViewHostMsg_TextInputState_Params& params) { 193 const ViewHostMsg_TextInputState_Params& params) {
194 if (is_hidden_) 194 if (is_hidden_)
195 return; 195 return;
196 196
197 content_view_core_->ImeUpdateAdapter( 197 content_view_core_->ImeUpdateAdapter(
198 GetNativeImeAdapter(), 198 GetNativeImeAdapter(),
199 static_cast<int>(params.type), 199 static_cast<int>(params.type),
200 params.value, params.selection_start, params.selection_end, 200 params.value, params.selection_start, params.selection_end,
201 params.composition_start, params.composition_end, 201 params.composition_start, params.composition_end,
202 false /* show_ime_if_needed */); 202 params.show_ime_if_needed);
203 } 203 }
204 204
205 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() { 205 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() {
206 return reinterpret_cast<int>(&ime_adapter_android_); 206 return reinterpret_cast<int>(&ime_adapter_android_);
207 } 207 }
208 208
209 void RenderWidgetHostViewAndroid::ImeCancelComposition() { 209 void RenderWidgetHostViewAndroid::ImeCancelComposition() {
210 ime_adapter_android_.CancelComposition(); 210 ime_adapter_android_.CancelComposition();
211 } 211 }
212 212
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // RenderWidgetHostView, public: 437 // RenderWidgetHostView, public:
438 438
439 // static 439 // static
440 RenderWidgetHostView* 440 RenderWidgetHostView*
441 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 441 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
442 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 442 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
443 return new RenderWidgetHostViewAndroid(rwhi, NULL); 443 return new RenderWidgetHostViewAndroid(rwhi, NULL);
444 } 444 }
445 445
446 } // namespace content 446 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698