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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 <algorithm> 7 #include <algorithm>
8 #include <android/input.h> 8 #include <android/input.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 #include "content/public/browser/native_web_keyboard_event.h" 28 #include "content/public/browser/native_web_keyboard_event.h"
29 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
30 #include "content/public/common/content_features.h" 30 #include "content/public/common/content_features.h"
31 #include "jni/ImeAdapter_jni.h" 31 #include "jni/ImeAdapter_jni.h"
32 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 32 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
33 #include "third_party/WebKit/public/web/WebInputEvent.h" 33 #include "third_party/WebKit/public/web/WebInputEvent.h"
34 #include "third_party/WebKit/public/web/WebTextInputType.h" 34 #include "third_party/WebKit/public/web/WebTextInputType.h"
35 35
36 using base::android::AttachCurrentThread; 36 using base::android::AttachCurrentThread;
37 using base::android::ConvertJavaStringToUTF16; 37 using base::android::ConvertJavaStringToUTF16;
38 using base::android::JavaParamRef;
38 39
39 namespace content { 40 namespace content {
40 namespace { 41 namespace {
41 42
42 // Maps a java KeyEvent into a NativeWebKeyboardEvent. 43 // Maps a java KeyEvent into a NativeWebKeyboardEvent.
43 // |java_key_event| is used to maintain a globalref for KeyEvent. 44 // |java_key_event| is used to maintain a globalref for KeyEvent.
44 // |action| will help determine the WebInputEvent type. 45 // |action| will help determine the WebInputEvent type.
45 // type, |modifiers|, |time_ms|, |key_code|, |unicode_char| is used to create 46 // type, |modifiers|, |time_ms|, |key_code|, |unicode_char| is used to create
46 // WebKeyboardEvent. |key_code| is also needed ad need to treat the enter key 47 // WebKeyboardEvent. |key_code| is also needed ad need to treat the enter key
47 // as a key press of character \r. 48 // as a key press of character \r.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 378 }
378 379
379 WebContents* ImeAdapterAndroid::GetWebContents() { 380 WebContents* ImeAdapterAndroid::GetWebContents() {
380 RenderWidgetHostImpl* rwh = GetRenderWidgetHostImpl(); 381 RenderWidgetHostImpl* rwh = GetRenderWidgetHostImpl();
381 if (!rwh) 382 if (!rwh)
382 return nullptr; 383 return nullptr;
383 return WebContents::FromRenderViewHost(RenderViewHost::From(rwh)); 384 return WebContents::FromRenderViewHost(RenderViewHost::From(rwh));
384 } 385 }
385 386
386 } // namespace content 387 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698