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

Side by Side Diff: ui/platform_window/android/platform_window_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ui/platform_window/android/platform_window_android.h" 5 #include "ui/platform_window/android/platform_window_android.h"
6 6
7 #include <android/input.h> 7 #include <android/input.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 9
10 #include "base/android/context_utils.h" 10 #include "base/android/context_utils.h"
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "jni/PlatformWindowAndroid_jni.h" 12 #include "jni/PlatformWindowAndroid_jni.h"
13 #include "ui/events/event.h" 13 #include "ui/events/event.h"
14 #include "ui/events/keycodes/keyboard_code_conversion_android.h" 14 #include "ui/events/keycodes/keyboard_code_conversion_android.h"
15 #include "ui/gfx/geometry/point.h" 15 #include "ui/gfx/geometry/point.h"
16 #include "ui/platform_window/platform_window_delegate.h" 16 #include "ui/platform_window/platform_window_delegate.h"
17 17
18 using base::android::JavaParamRef;
19 using base::android::ScopedJavaLocalRef;
20
18 namespace ui { 21 namespace ui {
19 22
20 namespace { 23 namespace {
21 24
22 ui::EventType MotionEventActionToEventType(jint action) { 25 ui::EventType MotionEventActionToEventType(jint action) {
23 switch (action) { 26 switch (action) {
24 case AMOTION_EVENT_ACTION_DOWN: 27 case AMOTION_EVENT_ACTION_DOWN:
25 case AMOTION_EVENT_ACTION_POINTER_DOWN: 28 case AMOTION_EVENT_ACTION_POINTER_DOWN:
26 return ui::ET_TOUCH_PRESSED; 29 return ui::ET_TOUCH_PRESSED;
27 case AMOTION_EVENT_ACTION_UP: 30 case AMOTION_EVENT_ACTION_UP:
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 224
222 void PlatformWindowAndroid::ConfineCursorToBounds(const gfx::Rect& bounds) { 225 void PlatformWindowAndroid::ConfineCursorToBounds(const gfx::Rect& bounds) {
223 NOTIMPLEMENTED(); 226 NOTIMPLEMENTED();
224 } 227 }
225 228
226 PlatformImeController* PlatformWindowAndroid::GetPlatformImeController() { 229 PlatformImeController* PlatformWindowAndroid::GetPlatformImeController() {
227 return &platform_ime_controller_; 230 return &platform_ime_controller_;
228 } 231 }
229 232
230 } // namespace ui 233 } // namespace ui
OLDNEW
« no previous file with comments | « ui/platform_window/android/platform_ime_controller_android.cc ('k') | ui/shell_dialogs/select_file_dialog_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698