当前位置: 首页>>代码示例>>Java>>正文


Java ViewAndroidDelegate类代码示例

本文整理汇总了Java中org.chromium.ui.ViewAndroidDelegate的典型用法代码示例。如果您正苦于以下问题:Java ViewAndroidDelegate类的具体用法?Java ViewAndroidDelegate怎么用?Java ViewAndroidDelegate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ViewAndroidDelegate类属于org.chromium.ui包,在下文中一共展示了ViewAndroidDelegate类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AutofillPopup

import org.chromium.ui.ViewAndroidDelegate; //导入依赖的package包/类
/**
 * Creates an AutofillWindow with specified parameters.
 * @param context Application context.
 * @param viewAndroidDelegate View delegate used to add and remove views.
 * @param autofillCallback A object that handles the calls to the native AutofillPopupView.
 */
public AutofillPopup(Context context, ViewAndroidDelegate viewAndroidDelegate,
        AutofillPopupDelegate autofillCallback) {
    super(context, null, 0, R.style.AutofillPopupWindow);
    mContext = context;
    mViewAndroidDelegate = viewAndroidDelegate ;
    mAutofillCallback = autofillCallback;

    setOnItemClickListener(this);

    mAnchorView = mViewAndroidDelegate.acquireAnchorView();
    mAnchorView.setId(R.id.autofill_popup_window);
    mAnchorView.setTag(this);

    mViewAndroidDelegate.setAnchorViewPosition(mAnchorView, mAnchorX, mAnchorY, mAnchorWidth,
            mAnchorHeight);

    mLayoutChangeListener = new OnLayoutChangeListener() {
        @Override
        public void onLayoutChange(View v, int left, int top, int right, int bottom,
                int oldLeft, int oldTop, int oldRight, int oldBottom) {
            if (v == mAnchorView) AutofillPopup.this.show();
        }
    };

    mAnchorView.addOnLayoutChangeListener(mLayoutChangeListener);
    setAnchorView(mAnchorView);
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:34,代码来源:AutofillPopup.java

示例2: ViewAndroid

import org.chromium.ui.ViewAndroidDelegate; //导入依赖的package包/类
/**
 * Constructs a View object.
 */
public ViewAndroid(WindowAndroid nativeWindow, ViewAndroidDelegate viewAndroidDelegate) {
    mWindowAndroid = nativeWindow;
    mViewAndroidDelegate = viewAndroidDelegate;
    mNativeViewAndroid = nativeInit(mWindowAndroid.getNativePointer());
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:9,代码来源:ViewAndroid.java

示例3: getViewAndroidDelegate

import org.chromium.ui.ViewAndroidDelegate; //导入依赖的package包/类
public ViewAndroidDelegate getViewAndroidDelegate() {
    return mViewAndroidDelegate;
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:4,代码来源:ViewAndroid.java

示例4: AutofillPopupGlue

import org.chromium.ui.ViewAndroidDelegate; //导入依赖的package包/类
public AutofillPopupGlue(int nativeAutofillPopupViewAndroid, WindowAndroid windowAndroid,
        ViewAndroidDelegate containerViewDelegate) {
    mNativeAutofillPopup = nativeAutofillPopupViewAndroid;
    mAutofillPopup = new AutofillPopup(windowAndroid.getContext(), containerViewDelegate, this);
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:6,代码来源:AutofillPopupGlue.java


注:本文中的org.chromium.ui.ViewAndroidDelegate类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。