зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1381983 - [2.1] Add default/stub implementations of the context menu handlers. r=snorp
This commit is contained in:
Родитель
70800ca13d
Коммит
401b7f23bc
|
@ -3456,6 +3456,10 @@ public class BrowserApp extends GeckoApp
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onContextMenu(GeckoView view, int screenX, int screenY,
|
||||
String uri, String imageSrc) {}
|
||||
|
||||
@Override
|
||||
public boolean onPrepareOptionsMenu(Menu aMenu) {
|
||||
if (aMenu == null)
|
||||
|
|
|
@ -567,4 +567,8 @@ public class CustomTabsActivity extends AppCompatActivity
|
|||
|
||||
@Override
|
||||
public void onFullScreen(GeckoView view, boolean fullScreen) {}
|
||||
|
||||
@Override
|
||||
public void onContextMenu(GeckoView view, int screenX, int screenY,
|
||||
String uri, String imageSrc) {}
|
||||
}
|
||||
|
|
|
@ -133,6 +133,14 @@ public class GeckoViewActivity extends Activity {
|
|||
getActionBar().show();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onContextMenu(GeckoView view, int screenX, int screenY,
|
||||
String uri, String imageSrc) {
|
||||
Log.d(LOGTAG, "onContextMenu screenX=" + screenX +
|
||||
" screenY=" + screenY + " uri=" + uri +
|
||||
" imageSrc=" + imageSrc);
|
||||
}
|
||||
}
|
||||
|
||||
private class MyGeckoViewProgress implements GeckoView.ProgressListener {
|
||||
|
|
Загрузка…
Ссылка в новой задаче