BridgeWindow.java revision 664644d9e012aa2a28ac96f305b1ce6499ec8806
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
17package com.android.layoutlib.bridge.android;
18
19import android.content.res.Configuration;
20import android.graphics.Rect;
21import android.os.Bundle;
22import android.os.IBinder;
23import android.os.ParcelFileDescriptor;
24import android.os.RemoteException;
25import android.view.DragEvent;
26import android.view.IWindow;
27import android.view.KeyEvent;
28import android.view.MotionEvent;
29import android.view.View.AttachInfo;
30
31/**
32 * Implementation of {@link IWindow} to pass to the {@link AttachInfo}.
33 */
34public final class BridgeWindow implements IWindow {
35
36    public void dispatchAppVisibility(boolean arg0) throws RemoteException {
37        // pass for now.
38    }
39
40    public void dispatchGetNewSurface() throws RemoteException {
41        // pass for now.
42    }
43
44    public void dispatchKey(KeyEvent arg0) throws RemoteException {
45        // pass for now.
46    }
47
48    public void dispatchPointer(MotionEvent arg0, long arg1, boolean arg2) throws RemoteException {
49        // pass for now.
50    }
51
52    public void dispatchTrackball(MotionEvent arg0, long arg1, boolean arg2)
53    throws RemoteException {
54        // pass for now.
55    }
56
57    public void executeCommand(String arg0, String arg1, ParcelFileDescriptor arg2)
58            throws RemoteException {
59        // pass for now.
60    }
61
62    public void resized(int arg0, int arg1, Rect arg2, Rect arg3, boolean arg4, Configuration arg5)
63            throws RemoteException {
64        // pass for now.
65    }
66
67    public void windowFocusChanged(boolean arg0, boolean arg1) throws RemoteException {
68        // pass for now.
69    }
70
71    public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep,
72            boolean sync) {
73        // pass for now.
74    }
75
76    public void dispatchWallpaperCommand(String action, int x, int y,
77            int z, Bundle extras, boolean sync) {
78        // pass for now.
79    }
80
81    public void closeSystemDialogs(String reason) {
82        // pass for now.
83    }
84
85    public void dispatchDragEvent(DragEvent event) {
86        // pass for now.
87    }
88
89    public void dispatchSystemUiVisibilityChanged(int visibility) {
90        // pass for now.
91    }
92
93    public IBinder asBinder() {
94        // pass for now.
95        return null;
96    }
97}
98