| 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/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 Loading... |
| 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 |
| OLD | NEW |