import org.xwalk.core.XWalkPreferences;
import org.xwalk.core.XWalkResourceClient;
import org.xwalk.core.XWalkView;
-import org.xwalk.core.XWalkWebChromeClient;
+import org.xwalk.core.internal.XWalkViewInternal;
+import org.xwalk.core.internal.XWalkWebChromeClient;
public class XWalkViewShellActivity extends FragmentActivity
implements ActionBar.TabListener, XWalkViewSectionFragment.OnXWalkViewCreatedListener{
}
@Override
- public boolean onKeyUp(int keyCode, KeyEvent event) {
- if (mActiveView != null) {
- return mActiveView.onKeyUp(keyCode, event) || super.onKeyUp(keyCode, event);
- }
- return super.onKeyUp(keyCode, event);
- }
-
- @Override
public void onNewIntent(Intent intent) {
if (mActiveView != null) {
if (!mActiveView.onNewIntent(intent)) super.onNewIntent(intent);
}
});
+ // TODO: core shell shouldn't use internal APIs.
xwalkView.setXWalkWebChromeClient(new XWalkWebChromeClient(xwalkView) {
@Override
- public void onReceivedTitle(XWalkView view, String title) {
- mSectionsPagerAdapter.setPageTitle(view, title);
+ public void onReceivedTitle(XWalkViewInternal view, String title) {
+ mSectionsPagerAdapter.setPageTitle((XWalkView)view, title);
}
});
}