/*
 * Copyright (C) 2010 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.layoutlib.bridge.android;

import android.content.res.Configuration;
import android.graphics.Rect;
import android.graphics.Region;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.view.IWindow;
import android.view.IWindowSession;
import android.view.MotionEvent;
import android.view.Surface;
import android.view.SurfaceView;
import android.view.WindowManager.LayoutParams;

/**
 * Implementation of {@link IWindowSession} so that mSession is not null in
 * the {@link SurfaceView}.
 */
public final class BridgeWindowSession implements IWindowSession {

    public void finishDrawing(IWindow arg0) throws RemoteException {
        // pass for now.
    }

    public boolean getInTouchMode() throws RemoteException {
        // pass for now.
        return false;
    }

    public boolean performHapticFeedback(IWindow window, int effectId, boolean always) {
        // pass for now.
        return false;
    }

    public int relayout(IWindow arg0, LayoutParams arg1, int arg2, int arg3, int arg4,
            boolean arg4_5, Rect arg5, Rect arg6, Rect arg7, Configuration arg7b, Surface arg8)
            throws RemoteException {
        // pass for now.
        return 0;
    }

    public void getDisplayFrame(IWindow window, Rect outDisplayFrame) {
        // pass for now.
    }

    public void remove(IWindow arg0) throws RemoteException {
        // pass for now.
    }

    public void setInTouchMode(boolean arg0) throws RemoteException {
        // pass for now.
    }

    public void setTransparentRegion(IWindow arg0, Region arg1) throws RemoteException {
        // pass for now.
    }

    public void setWallpaperPosition(IBinder window, float x, float y,
        float xStep, float yStep) {
        // pass for now.
    }

    public void wallpaperOffsetsComplete(IBinder window) {
        // pass for now.
    }

    public Bundle sendWallpaperCommand(IBinder window, String action, int x, int y,
            int z, Bundle extras, boolean sync) {
        // pass for now.
        return null;
    }

    public void wallpaperCommandComplete(IBinder window, Bundle result) {
        // pass for now.
    }

    public IBinder asBinder() {
        // pass for now.
        return null;
    }

    public void setInsets(IWindow arg0, int arg1, Rect arg2, Rect arg3) throws RemoteException {
        // TODO Auto-generated method stub

    }

    public int add(IWindow arg0, LayoutParams arg1, int arg2, Rect arg3) throws RemoteException {
        // TODO Auto-generated method stub
        return 0;
    }

    public void finishKey(IWindow arg0) throws RemoteException {
        // TODO Auto-generated method stub

    }

    public MotionEvent getPendingPointerMove(IWindow arg0) throws RemoteException {
        // TODO Auto-generated method stub
        return null;
    }

    public MotionEvent getPendingTrackballMove(IWindow arg0) throws RemoteException {
        // TODO Auto-generated method stub
        return null;
    }
}
