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