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

Unified Diff: content/browser/android/ime_utils.cc

Issue 10831060: Refactor the Android port to allow access to the chrome layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gyp fixes Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/ime_utils.cc
diff --git a/content/browser/android/ime_utils.cc b/content/browser/android/ime_utils.cc
deleted file mode 100644
index 8f173dae685e5813be6d51bacd894254fce4e4e6..0000000000000000000000000000000000000000
--- a/content/browser/android/ime_utils.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/android/ime_utils.h"
-
-#include <android/input.h>
-
-#include "base/android/jni_android.h"
-#include "content/public/browser/native_web_keyboard_event.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
-
-namespace content {
-
-jobject KeyEventFromNative(const NativeWebKeyboardEvent& event) {
- return event.os_event;
-}
-
-NativeWebKeyboardEvent NativeWebKeyboardEventFromKeyEvent(
- JNIEnv* env, jobject java_key_event, int action, int modifiers,
- long time_ms, int key_code, bool is_system_key, int unicode_char) {
- WebKit::WebInputEvent::Type type = WebKit::WebInputEvent::Undefined;
- if (action == AKEY_EVENT_ACTION_DOWN)
- type = WebKit::WebInputEvent::RawKeyDown;
- else if (action == AKEY_EVENT_ACTION_UP)
- type = WebKit::WebInputEvent::KeyUp;
- return NativeWebKeyboardEvent(java_key_event, type, modifiers,
- time_ms, key_code, unicode_char, is_system_key);
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698