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, boolean b2, boolean b3)
54            throws RemoteException {
55        // pass for now.
56    }
57
58    @Override
59    public void moved(int arg0, int arg1) throws RemoteException {
60        // pass for now.
61    }
62
63    @Override
64    public void windowFocusChanged(boolean arg0, boolean arg1) throws RemoteException {
65        // pass for now.
66    }
67
68    @Override
69    public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep,
70            boolean sync) {
71        // pass for now.
72    }
73
74    @Override
75    public void dispatchWallpaperCommand(String action, int x, int y,
76            int z, Bundle extras, boolean sync) {
77        // pass for now.
78    }
79
80    @Override
81    public void closeSystemDialogs(String reason) {
82        // pass for now.
83    }
84
85    @Override
86    public void dispatchDragEvent(DragEvent event) {
87        // pass for now.
88    }
89
90    @Override
91    public void updatePointerIcon(float x, float y) {
92        // pass for now
93    }
94
95    @Override
96    public void dispatchSystemUiVisibilityChanged(int seq, int globalUi,
97            int localValue, int localChanges) {
98        // pass for now.
99    }
100
101    @Override
102    public void dispatchWindowShown() {
103    }
104
105    @Override
106    public void requestAppKeyboardShortcuts(
107            IResultReceiver receiver, int deviceId) throws RemoteException {
108    }
109
110    @Override
111    public IBinder asBinder() {
112        // pass for now.
113        return null;
114    }
115
116}
117