Java 类android.view.Window.Callback 实例源码

项目:boohee_v5.6    文件:ToolbarActionBar.java   
public ToolbarActionBar(Toolbar toolbar, CharSequence title, Callback callback) {
    this.mDecorToolbar = new ToolbarWidgetWrapper(toolbar, false);
    this.mWindowCallback = new ToolbarCallbackWrapper(callback);
    this.mDecorToolbar.setWindowCallback(this.mWindowCallback);
    toolbar.setOnMenuItemClickListener(this.mMenuClicker);
    this.mDecorToolbar.setWindowTitle(title);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV14.java   
final ActionMode startAsSupportActionMode(ActionMode.Callback callback) {
    CallbackWrapper callbackWrapper = new CallbackWrapper(AppCompatDelegateImplV14.this.mContext, callback);
    android.support.v7.view.ActionMode supportActionMode = AppCompatDelegateImplV14.this.startSupportActionMode(callbackWrapper);
    if (supportActionMode != null) {
        return callbackWrapper.getActionModeWrapper(supportActionMode);
    }
    return null;
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV23.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) {
    if (AppCompatDelegateImplV23.this.isHandleNativeActionModesEnabled()) {
        switch (type) {
            case 0:
                return startAsSupportActionMode(callback);
        }
    }
    return super.onWindowStartingActionMode(callback, type);
}
项目:boohee_v5.6    文件:ToolbarWidgetWrapper.java   
public void setMenu(Menu menu, MenuPresenter.Callback cb) {
    if (this.mActionMenuPresenter == null) {
        this.mActionMenuPresenter = new ActionMenuPresenter(this.mToolbar.getContext());
        this.mActionMenuPresenter.setId(R.id.action_menu_presenter);
    }
    this.mActionMenuPresenter.setCallback(cb);
    this.mToolbar.setMenu((MenuBuilder) menu, this.mActionMenuPresenter);
}
项目:solved-hacking-problem    文件:am.java   
public boolean m1757a(C0264i c0264i) {
    Callback o = this.f622a.m1658o();
    if (o != null) {
        o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
    }
    return true;
}
项目:solved-hacking-problem    文件:ar.java   
public boolean m1775a(C0264i c0264i) {
    if (c0264i == null && this.f654a.h) {
        Callback o = this.f654a.m1658o();
        if (!(o == null || this.f654a.m1657n())) {
            o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
        }
    }
    return true;
}
项目:solved-hacking-problem    文件:ad.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i) {
    if (this.f614c.m1739m()) {
        switch (i) {
            case C0243l.View_android_theme /*0*/:
                return m1740a(callback);
        }
    }
    return super.onWindowStartingActionMode(callback, i);
}
项目:solved-hacking-problem    文件:ae.java   
private void m1680b(C0264i c0264i) {
    if (!this.f581A) {
        this.f581A = true;
        this.f597r.m2303j();
        Callback o = m1658o();
        if (!(o == null || m1657n())) {
            o.onPanelClosed(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
        }
        this.f581A = false;
    }
}
项目:solved-hacking-problem    文件:ae.java   
public boolean m1711a(C0264i c0264i, MenuItem menuItem) {
    Callback o = m1658o();
    if (!(o == null || m1657n())) {
        aq a = m1665a(c0264i.m2142p());
        if (a != null) {
            return o.onMenuItemSelected(a.f635a, menuItem);
        }
    }
    return false;
}
项目:solved-hacking-problem    文件:am.java   
public boolean m1757a(C0264i c0264i) {
    Callback o = this.f622a.m1658o();
    if (o != null) {
        o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
    }
    return true;
}
项目:solved-hacking-problem    文件:ar.java   
public boolean m1775a(C0264i c0264i) {
    if (c0264i == null && this.f654a.h) {
        Callback o = this.f654a.m1658o();
        if (!(o == null || this.f654a.m1657n())) {
            o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
        }
    }
    return true;
}
项目:solved-hacking-problem    文件:ad.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i) {
    if (this.f614c.m1739m()) {
        switch (i) {
            case C0243l.View_android_theme /*0*/:
                return m1740a(callback);
        }
    }
    return super.onWindowStartingActionMode(callback, i);
}
项目:solved-hacking-problem    文件:ae.java   
private void m1680b(C0264i c0264i) {
    if (!this.f581A) {
        this.f581A = true;
        this.f597r.m2303j();
        Callback o = m1658o();
        if (!(o == null || m1657n())) {
            o.onPanelClosed(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
        }
        this.f581A = false;
    }
}
项目:solved-hacking-problem    文件:ae.java   
public boolean m1711a(C0264i c0264i, MenuItem menuItem) {
    Callback o = m1658o();
    if (!(o == null || m1657n())) {
        aq a = m1665a(c0264i.m2142p());
        if (a != null) {
            return o.onMenuItemSelected(a.f635a, menuItem);
        }
    }
    return false;
}
项目:FMTech    文件:AppCompatDelegateImplV14.java   
public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode.Callback paramCallback)
{
  if (AppCompatDelegateImplV14.this.mHandleNativeActionModes) {
    return startAsSupportActionMode(paramCallback);
  }
  return super.onWindowStartingActionMode(paramCallback);
}
项目:FMTech    文件:AppCompatDelegateImplV7.java   
final void checkCloseActionMenu(MenuBuilder paramMenuBuilder)
{
  if (this.mClosingActionMenu) {
    return;
  }
  this.mClosingActionMenu = true;
  this.mDecorContentParent.dismissPopups();
  Window.Callback localCallback = this.mWindow.getCallback();
  if ((localCallback != null) && (!this.mIsDestroyed)) {
    localCallback.onPanelClosed(108, paramMenuBuilder);
  }
  this.mClosingActionMenu = false;
}
项目:FMTech    文件:AppCompatDelegateImplV7.java   
public final boolean onMenuItemSelected(MenuBuilder paramMenuBuilder, MenuItem paramMenuItem)
{
  Window.Callback localCallback = this.mWindow.getCallback();
  if ((localCallback != null) && (!this.mIsDestroyed))
  {
    PanelFeatureState localPanelFeatureState = findMenuPanel(paramMenuBuilder.getRootMenu());
    if (localPanelFeatureState != null) {
      return localCallback.onMenuItemSelected(localPanelFeatureState.featureId, paramMenuItem);
    }
  }
  return false;
}
项目:FMTech    文件:AppCompatDelegateImplV7.java   
public final void onMenuModeChange(MenuBuilder paramMenuBuilder)
{
  if ((this.mDecorContentParent != null) && (this.mDecorContentParent.canShowOverflowMenu()) && ((!ViewConfigurationCompat.hasPermanentMenuKey(ViewConfiguration.get(this.mContext))) || (this.mDecorContentParent.isOverflowMenuShowPending())))
  {
    Window.Callback localCallback = this.mWindow.getCallback();
    if (!this.mDecorContentParent.isOverflowMenuShowing()) {
      if ((localCallback != null) && (!this.mIsDestroyed))
      {
        if ((this.mInvalidatePanelMenuPosted) && ((0x1 & this.mInvalidatePanelMenuFeatures) != 0))
        {
          this.mWindowDecor.removeCallbacks(this.mInvalidatePanelMenuRunnable);
          this.mInvalidatePanelMenuRunnable.run();
        }
        PanelFeatureState localPanelFeatureState2 = getPanelState$5103c037(0);
        if ((localPanelFeatureState2.menu != null) && (!localPanelFeatureState2.refreshMenuContent) && (localCallback.onPreparePanel(0, localPanelFeatureState2.createdPanelView, localPanelFeatureState2.menu)))
        {
          localCallback.onMenuOpened(108, localPanelFeatureState2.menu);
          this.mDecorContentParent.showOverflowMenu();
        }
      }
    }
    do
    {
      return;
      this.mDecorContentParent.hideOverflowMenu();
    } while (this.mIsDestroyed);
    localCallback.onPanelClosed(108, getPanelState$5103c037(0).menu);
    return;
  }
  PanelFeatureState localPanelFeatureState1 = getPanelState$5103c037(0);
  localPanelFeatureState1.refreshDecorView = true;
  closePanel(localPanelFeatureState1, false);
  openPanel(localPanelFeatureState1, null);
}
项目:FMTech    文件:AppCompatDelegateImplV7.java   
public final boolean onOpenSubMenu(MenuBuilder paramMenuBuilder)
{
  Window.Callback localCallback = AppCompatDelegateImplV7.this.mWindow.getCallback();
  if (localCallback != null) {
    localCallback.onMenuOpened(108, paramMenuBuilder);
  }
  return true;
}
项目:FMTech    文件:AppCompatDelegateImplV7.java   
public final boolean onOpenSubMenu(MenuBuilder paramMenuBuilder)
{
  if ((paramMenuBuilder == null) && (AppCompatDelegateImplV7.this.mHasActionBar))
  {
    Window.Callback localCallback = AppCompatDelegateImplV7.this.mWindow.getCallback();
    if ((localCallback != null) && (!AppCompatDelegateImplV7.this.mIsDestroyed)) {
      localCallback.onMenuOpened(108, paramMenuBuilder);
    }
  }
  return true;
}
项目:FMTech    文件:AppCompatDelegateImplV23.java   
public final ActionMode onWindowStartingActionMode(ActionMode.Callback paramCallback, int paramInt)
{
  if (AppCompatDelegateImplV23.this.mHandleNativeActionModes) {}
  switch (paramInt)
  {
  default: 
    return super.onWindowStartingActionMode(paramCallback, paramInt);
  }
  return startAsSupportActionMode(paramCallback);
}
项目:FMTech    文件:WindowCallbackWrapper.java   
public WindowCallbackWrapper(Window.Callback paramCallback)
{
  if (paramCallback == null) {
    throw new IllegalArgumentException("Window callback may not be null");
  }
  this.mWrapped = paramCallback;
}
项目:FMTech    文件:ToolbarActionBar.java   
public ToolbarActionBar(Toolbar paramToolbar, CharSequence paramCharSequence, Window.Callback paramCallback)
{
  this.mDecorToolbar = new ToolbarWidgetWrapper(paramToolbar, false);
  this.mWindowCallback = new ToolbarCallbackWrapper(paramCallback);
  this.mDecorToolbar.setWindowCallback(this.mWindowCallback);
  paramToolbar.setOnMenuItemClickListener(this.mMenuClicker);
  this.mDecorToolbar.setWindowTitle(paramCharSequence);
}
项目:boohee_v5.6    文件:WindowCallbackWrapper.java   
public WindowCallbackWrapper(Callback wrapped) {
    if (wrapped == null) {
        throw new IllegalArgumentException("Window callback may not be null");
    }
    this.mWrapped = wrapped;
}
项目:boohee_v5.6    文件:WindowCallbackWrapper.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
    return this.mWrapped.onWindowStartingActionMode(callback);
}
项目:boohee_v5.6    文件:WindowCallbackWrapper.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) {
    return this.mWrapped.onWindowStartingActionMode(callback, type);
}
项目:boohee_v5.6    文件:ToolbarActionBar.java   
public ToolbarCallbackWrapper(Callback wrapped) {
    super(wrapped);
}
项目:boohee_v5.6    文件:ToolbarActionBar.java   
public Callback getWrappedWindowCallback() {
    return this.mWindowCallback;
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV14.java   
AppCompatWindowCallbackV14(Callback callback) {
    super(callback);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV14.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
    if (AppCompatDelegateImplV14.this.isHandleNativeActionModesEnabled()) {
        return startAsSupportActionMode(callback);
    }
    return super.onWindowStartingActionMode(callback);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV14.java   
Callback wrapWindowCallback(Callback callback) {
    return new AppCompatWindowCallbackV14(callback);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplBase.java   
AppCompatWindowCallbackBase(Callback callback) {
    super(callback);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplBase.java   
Callback wrapWindowCallback(Callback callback) {
    return new AppCompatWindowCallbackBase(callback);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplBase.java   
final Callback getWindowCallback() {
    return this.mWindow.getCallback();
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV23.java   
AppCompatWindowCallbackV23(Callback callback) {
    super(callback);
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV23.java   
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
    return null;
}
项目:boohee_v5.6    文件:AppCompatDelegateImplV23.java   
Callback wrapWindowCallback(Callback callback) {
    return new AppCompatWindowCallbackV23(callback);
}
项目:boohee_v5.6    文件:ActionBarOverlayLayout.java   
public void setWindowCallback(Callback cb) {
    pullChildren();
    this.mDecorToolbar.setWindowCallback(cb);
}
项目:boohee_v5.6    文件:ActionBarOverlayLayout.java   
public void setMenu(Menu menu, MenuPresenter.Callback cb) {
    pullChildren();
    this.mDecorToolbar.setMenu(menu, cb);
}
项目:boohee_v5.6    文件:ToolbarWidgetWrapper.java   
public void setWindowCallback(Callback cb) {
    this.mWindowCallback = cb;
}