BridgeWindow.java revision 2260a618424b1cbdb1a051e613bd9e24a25d8436
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 com.android.internal.os.IResultReceiver;
20
21import android.content.res.Configuration;
22import android.graphics.Rect;
23import android.os.Bundle;
24import android.os.IBinder;
25import android.os.ParcelFileDescriptor;
26import android.os.RemoteException;
27import android.view.DragEvent;
28import android.view.IWindow;
29
30/**
31 * Implementation of {@link IWindow} to pass to the AttachInfo.
32 */
33public final class BridgeWindow implements IWindow {
34
35    @Override
36    public void dispatchAppVisibility(boolean arg0) throws RemoteException {
37        // pass for now.
38    }
39
40    @Override
41    public void dispatchGetNewSurface() throws RemoteException {
42        // pass for now.
43    }
44
45    @Override
46    public void executeCommand(String arg0, String arg1, ParcelFileDescriptor arg2)
47            throws RemoteException {
48        // pass for now.
49    }
50
51    @Override
52    public void resized(Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, Rect rect6,
53            boolean b, Configuration configuration, Rect rect7) throws RemoteException {
54        // pass for now.
55    }
56
57    @Override
58    public void moved(int arg0, int arg1) throws RemoteException {
59        // pass for now.
60    }
61
62    @Override
63    public void windowFocusChanged(boolean arg0, boolean arg1) throws RemoteException {
64        // pass for now.
65    }
66
67    @Override
68    public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep,
69            boolean sync) {
70        // pass for now.
71    }
72
73    @Override
74    public void dispatchWallpaperCommand(String action, int x, int y,
75            int z, Bundle extras, boolean sync) {
76        // pass for now.
77    }
78
79    @Override
80    public void closeSystemDialogs(String reason) {
81        // pass for now.
82    }
83
84    @Override
85    public void dispatchDragEvent(DragEvent event) {
86        // pass for now.
87    }
88
89    @Override
90    public void updatePointerIcon(float x, float y) {
91        // pass for now
92    }
93
94    @Override
95    public void dispatchSystemUiVisibilityChanged(int seq, int globalUi,
96            int localValue, int localChanges) {
97        // pass for now.
98    }
99
100    @Override
101    public void dispatchWindowShown() {
102    }
103
104    @Override
105    public void requestAppKeyboardShortcuts(IResultReceiver receiver) throws RemoteException {
106    }
107
108    @Override
109    public IBinder asBinder() {
110        // pass for now.
111        return null;
112    }
113
114}
115