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.graphics.Rect; 22import android.os.Bundle; 23import android.os.IBinder; 24import android.os.ParcelFileDescriptor; 25import android.os.RemoteException; 26import android.util.MergedConfiguration; 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, MergedConfiguration mergedConfig, Rect rect7, boolean b2, boolean b3, int i0) 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 void dispatchPointerCaptureChanged(boolean hasCapture) { 112 } 113 114 @Override 115 public IBinder asBinder() { 116 // pass for now. 117 return null; 118 } 119 120} 121