OSDN Git Service

LayoutLib: import of the GB layoutlib.
[android-x86/frameworks-base.git] / tools / layoutlib / bridge / src / com / android / layoutlib / bridge / android / BridgeWindow.java
1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package com.android.layoutlib.bridge.android;
18
19 import android.content.res.Configuration;
20 import android.graphics.Rect;
21 import android.os.Bundle;
22 import android.os.IBinder;
23 import android.os.ParcelFileDescriptor;
24 import android.os.RemoteException;
25 import android.view.IWindow;
26 import android.view.KeyEvent;
27 import android.view.MotionEvent;
28 import android.view.View.AttachInfo;
29
30 /**
31  * Implementation of {@link IWindow} to pass to the {@link AttachInfo}.
32  */
33 public final class BridgeWindow implements IWindow {
34
35     public void dispatchAppVisibility(boolean arg0) throws RemoteException {
36         // pass for now.
37     }
38
39     public void dispatchGetNewSurface() throws RemoteException {
40         // pass for now.
41     }
42
43     public void dispatchKey(KeyEvent arg0) throws RemoteException {
44         // pass for now.
45     }
46
47     public void dispatchPointer(MotionEvent arg0, long arg1, boolean arg2) throws RemoteException {
48         // pass for now.
49     }
50
51     public void dispatchTrackball(MotionEvent arg0, long arg1, boolean arg2)
52     throws RemoteException {
53         // pass for now.
54     }
55
56     public void executeCommand(String arg0, String arg1, ParcelFileDescriptor arg2)
57             throws RemoteException {
58         // pass for now.
59     }
60
61     public void resized(int arg0, int arg1, Rect arg2, Rect arg3, boolean arg4, Configuration arg5)
62             throws RemoteException {
63         // pass for now.
64     }
65
66     public void windowFocusChanged(boolean arg0, boolean arg1) throws RemoteException {
67         // pass for now.
68     }
69
70     public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep,
71             boolean sync) {
72         // pass for now.
73     }
74
75     public void dispatchWallpaperCommand(String action, int x, int y,
76             int z, Bundle extras, boolean sync) {
77         // pass for now.
78     }
79
80     public void closeSystemDialogs(String reason) {
81         // pass for now.
82     }
83
84     public void dispatchSystemUiVisibilityChanged(int visibility) {
85         // pass for now.
86     }
87
88     public IBinder asBinder() {
89         // pass for now.
90         return null;
91     }
92 }