mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
189 lines
6.2 KiB
Java
189 lines
6.2 KiB
Java
package androidx.appcompat.view;
|
|
|
|
import android.view.ActionMode;
|
|
import android.view.KeyEvent;
|
|
import android.view.KeyboardShortcutGroup;
|
|
import android.view.Menu;
|
|
import android.view.MenuItem;
|
|
import android.view.MotionEvent;
|
|
import android.view.SearchEvent;
|
|
import android.view.View;
|
|
import android.view.Window;
|
|
import android.view.WindowManager;
|
|
import android.view.accessibility.AccessibilityEvent;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class WindowCallbackWrapper implements Window.Callback {
|
|
final Window.Callback mWrapped;
|
|
|
|
public final Window.Callback getWrapped() {
|
|
return this.mWrapped;
|
|
}
|
|
|
|
public WindowCallbackWrapper(Window.Callback callback) {
|
|
if (callback == null) {
|
|
throw new IllegalArgumentException("Window callback may not be null");
|
|
}
|
|
this.mWrapped = callback;
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean dispatchKeyEvent(KeyEvent keyEvent) {
|
|
return this.mWrapped.dispatchKeyEvent(keyEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent) {
|
|
return this.mWrapped.dispatchKeyShortcutEvent(keyEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
|
|
return this.mWrapped.dispatchTouchEvent(motionEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean dispatchTrackballEvent(MotionEvent motionEvent) {
|
|
return this.mWrapped.dispatchTrackballEvent(motionEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean dispatchGenericMotionEvent(MotionEvent motionEvent) {
|
|
return this.mWrapped.dispatchGenericMotionEvent(motionEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
|
|
return this.mWrapped.dispatchPopulateAccessibilityEvent(accessibilityEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public View onCreatePanelView(int i) {
|
|
return this.mWrapped.onCreatePanelView(i);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean onCreatePanelMenu(int i, Menu menu) {
|
|
return this.mWrapped.onCreatePanelMenu(i, menu);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean onPreparePanel(int i, View view, Menu menu) {
|
|
return this.mWrapped.onPreparePanel(i, view, menu);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean onMenuOpened(int i, Menu menu) {
|
|
return this.mWrapped.onMenuOpened(i, menu);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean onMenuItemSelected(int i, MenuItem menuItem) {
|
|
return this.mWrapped.onMenuItemSelected(i, menuItem);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onWindowAttributesChanged(WindowManager.LayoutParams layoutParams) {
|
|
this.mWrapped.onWindowAttributesChanged(layoutParams);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onContentChanged() {
|
|
this.mWrapped.onContentChanged();
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onWindowFocusChanged(boolean z) {
|
|
this.mWrapped.onWindowFocusChanged(z);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onAttachedToWindow() {
|
|
this.mWrapped.onAttachedToWindow();
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onDetachedFromWindow() {
|
|
this.mWrapped.onDetachedFromWindow();
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onPanelClosed(int i, Menu menu) {
|
|
this.mWrapped.onPanelClosed(i, menu);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean onSearchRequested(SearchEvent searchEvent) {
|
|
return Api23Impl.onSearchRequested(this.mWrapped, searchEvent);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public boolean onSearchRequested() {
|
|
return this.mWrapped.onSearchRequested();
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public android.view.ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
|
|
return this.mWrapped.onWindowStartingActionMode(callback);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public android.view.ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i) {
|
|
return Api23Impl.onWindowStartingActionMode(this.mWrapped, callback, i);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onActionModeStarted(android.view.ActionMode actionMode) {
|
|
this.mWrapped.onActionModeStarted(actionMode);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onActionModeFinished(android.view.ActionMode actionMode) {
|
|
this.mWrapped.onActionModeFinished(actionMode);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onProvideKeyboardShortcuts(List<KeyboardShortcutGroup> list, Menu menu, int i) {
|
|
Api24Impl.onProvideKeyboardShortcuts(this.mWrapped, list, menu, i);
|
|
}
|
|
|
|
@Override // android.view.Window.Callback
|
|
public void onPointerCaptureChanged(boolean z) {
|
|
Api26Impl.onPointerCaptureChanged(this.mWrapped, z);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class Api23Impl {
|
|
private Api23Impl() {
|
|
}
|
|
|
|
static boolean onSearchRequested(Window.Callback callback, SearchEvent searchEvent) {
|
|
return callback.onSearchRequested(searchEvent);
|
|
}
|
|
|
|
static android.view.ActionMode onWindowStartingActionMode(Window.Callback callback, ActionMode.Callback callback2, int i) {
|
|
return callback.onWindowStartingActionMode(callback2, i);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class Api24Impl {
|
|
private Api24Impl() {
|
|
}
|
|
|
|
static void onProvideKeyboardShortcuts(Window.Callback callback, List<KeyboardShortcutGroup> list, Menu menu, int i) {
|
|
callback.onProvideKeyboardShortcuts(list, menu, i);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class Api26Impl {
|
|
private Api26Impl() {
|
|
}
|
|
|
|
static void onPointerCaptureChanged(Window.Callback callback, boolean z) {
|
|
callback.onPointerCaptureChanged(z);
|
|
}
|
|
}
|
|
}
|