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

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

Issue 14129003: Fix the incorrect native ImeAdapter attach and detach. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix nits Created 7 years, 8 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
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/ime_adapter_android.h" 5 #include "content/browser/renderer_host/ime_adapter_android.h"
6 6
7 #include <android/input.h> 7 #include <android/input.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) { 260 void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) {
261 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From( 261 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(
262 rwhva_->GetRenderWidgetHost()); 262 rwhva_->GetRenderWidgetHost());
263 if (!rwhi) 263 if (!rwhi)
264 return; 264 return;
265 265
266 rwhi->Send(new ViewMsg_Paste(rwhi->GetRoutingID())); 266 rwhi->Send(new ViewMsg_Paste(rwhi->GetRoutingID()));
267 } 267 }
268 268
269 void ImeAdapterAndroid::ResetImeAdapter(JNIEnv* env, jobject) {
270 java_ime_adapter_.reset();
271 }
272
269 } // namespace content 273 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698