Home | History | Annotate | Download | only in browser

Lines Matching full:menu

81 import android.view.Menu;
771 * at the top of the screen, when the menu is open or the page is loading.
776 * Keeps track of whether the options menu is open. This is important in
784 * after a configuration change is simply a reopening of the same menu
790 * Whether or not the options menu is in its smaller, icon menu form. When
797 public boolean onMenuOpened(int featureId, Menu menu) {
807 // Switching the menu to expanded view, so hide the
812 // Switching the menu back to icon view, so show the
819 // The options menu is closed, so open it, and show the title
842 // while the menu is up
858 public void onOptionsMenuClosed(Menu menu) {
864 // we were not showing the menu. Show it once again. It will be
889 * menu, since it is in its own Window, and its parent does not show a
890 * context menu.
900 public void onContextMenuClosed(Menu menu) {
901 super.onContextMenuClosed(menu);
944 // FIXME: This removes the active tabs page and resets the menu to
1097 public boolean onCreateOptionsMenu(Menu menu) {
1098 super.onCreateOptionsMenu(menu);
1101 inflater.inflate(R.menu.browser, menu);
1102 mMenu = menu;
1108 * As the menu can be open when loading state changes
1109 * we must manually update the state of the stop/reload menu
1132 // For the context menu from the title bar
1146 // -- Browser context menu
1278 // menu key.
1285 // The shortcut action consumes the MENU. Even if it is still down,
1288 // won't get onKeyUp for MENU. So it is important to reset it here.
1292 // -- Main menu
1458 public boolean onPrepareOptionsMenu(Menu menu) {
1459 // This happens when the user begins to hold down the menu key, so
1465 super.onPrepareOptionsMenu(menu);
1469 menu.setGroupVisible(R.id.MAIN_MENU, false);
1470 menu.setGroupEnabled(R.id.MAIN_MENU, false);
1471 menu.setGroupEnabled(R.id.MAIN_SHORTCUT_MENU, false);
1476 menu.setGroupVisible(R.id.MAIN_MENU, true);
1477 menu.setGroupEnabled(R.id.MAIN_MENU, true);
1478 menu.setGroupEnabled(R.id.MAIN_SHORTCUT_MENU, true);
1489 final MenuItem back = menu.findItem(R.id.back_menu_id);
1492 final MenuItem home = menu.findItem(R.id.homepage_menu_id);
1495 menu.findItem(R.id.forward_menu_id)
1498 menu.findItem(R.id.new_tab_menu_id).setEnabled(
1506 menu.findItem(R.id.share_page_menu_id).setVisible(ri != null);
1509 final MenuItem nav = menu.findItem(R.id.dump_nav_menu_id);
1514 final MenuItem counter = menu.findItem(R.id.dump_counters_menu_id);
1525 public void onCreateContextMenu(ContextMenu menu, View v,
1539 "We should not show context menu when nothing is touched");
1543 // let TextView handles context menu
1548 // an inflated menu can be used again. This is not available
1551 inflater.inflate(R.menu.browsercontext, menu);
1553 // Show the correct menu group
1555 menu.setGroupVisible(R.id.PHONE_MENU,
1557 menu.setGroupVisible(R.id.EMAIL_MENU,
1559 menu.setGroupVisible(R.id.GEO_MENU,
1561 menu.setGroupVisible(R.id.IMAGE_MENU,
1564 menu.setGroupVisible(R.id.ANCHOR_MENU,
1571 menu.setHeaderTitle(Uri.decode(extra));
1572 menu.findItem(R.id.dial_context_menu_id).setIntent(
1578 menu.findItem(R.id.add_contact_context_menu_id).setIntent(
1580 menu.findItem(R.id.copy_phone_context_menu_id).setOnMenuItemClickListener(
1585 menu.setHeaderTitle(extra);
1586 menu.findItem(R.id.email_context_menu_id).setIntent(
1589 menu.findItem(R.id.copy_mail_context_menu_id).setOnMenuItemClickListener(
1594 menu.setHeaderTitle(extra);
1595 menu.findItem(R.id.map_context_menu_id).setIntent(
1599 menu.findItem(R.id.copy_geo_context_menu_id).setOnMenuItemClickListener(
1609 menu.setHeaderView(titleView);
1611 menu.findItem(R.id.open_newtab_context_menu_id).setVisible(
1613 menu.findItem(R.id.bookmark_context_menu_id).setVisible(
1619 menu.findItem(R.id.share_link_context_menu_id).setVisible(ri != null);
1626 menu.setHeaderTitle(extra);
1628 menu.findItem(R.id.view_image_context_menu_id).setIntent(
1630 menu.findItem(R.id.download_context_menu_id).
1632 menu.findItem(R.id.set_wallpaper_context_menu_id).
2051 // Even if MENU is already held down, we need to call to super to open
2057 // The default key mode is DEFAULT_KEYS_SEARCH_LOCAL. As the MENU is
2658 // If the options menu is open, leave the title bar
2667 // update the menu items.
2694 // Save the menu state and set it to empty while the custom
2715 // Reset the old menu state.
3482 * menu to see the download window. It shows the download window on top of
3535 // Called when loading from context menu or LOAD_URL message
3770 private Menu mMenu;
3868 // "source" parameter for Google search through goto menu