diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-06-13 19:16:55 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-06-13 19:16:55 -0700 |
commit | 8e03b7566c42621fda01186b66b019142eb84fbf (patch) | |
tree | 17c45ea04288d2d57053ea740ae1cf332a4308c8 /core/java/com | |
parent | 5ddd127d5a38d80c0d8087d1770f41f61f84f048 (diff) | |
parent | 9e660c8201ab9aeead5d78a75c2bbfecc374858f (diff) | |
download | frameworks_base-8e03b7566c42621fda01186b66b019142eb84fbf.zip frameworks_base-8e03b7566c42621fda01186b66b019142eb84fbf.tar.gz frameworks_base-8e03b7566c42621fda01186b66b019142eb84fbf.tar.bz2 |
resolved conflicts for merge of 9e660c82 to master
Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/android/internal/view/BaseInputHandler.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/java/com/android/internal/view/BaseInputHandler.java b/core/java/com/android/internal/view/BaseInputHandler.java new file mode 100644 index 0000000..6fe5063 --- /dev/null +++ b/core/java/com/android/internal/view/BaseInputHandler.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2010 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.internal.view; + +import android.view.InputHandler; +import android.view.KeyEvent; +import android.view.MotionEvent; + +/** + * Base do-nothing implementation of an input handler. + * @hide + */ +public abstract class BaseInputHandler implements InputHandler { + public void handleKey(KeyEvent event, Runnable finishedCallback) { + finishedCallback.run(); + } + + public void handleTouch(MotionEvent event, Runnable finishedCallback) { + finishedCallback.run(); + } + + public void handleTrackball(MotionEvent event, Runnable finishedCallback) { + finishedCallback.run(); + } +} |