Lines Matching defs:menu

45  * <p>Handles display and behavior of the context menu for known actionable content in WebViews.
52 * <li>res/menu/webview_context_menu.xml</li>
86 // For our copy menu items.
101 // For our share menu items.
143 public void onCreateContextMenu(ContextMenu menu, View v,
164 // an inflated menu can be used again. This is not available
167 // Also, we are copying the menu file from browser until
169 inflater.inflate(getMenuResourceId(), menu);
171 // Initially make set the menu item handler this WebViewContextMenu, which will default to
173 for (int i = 0; i < menu.size(); i++) {
174 final MenuItem menuItem = menu.getItem(i);
179 // Show the correct menu group
181 menu.setGroupVisible(getMenuGroupResId(MenuGroupType.PHONE_GROUP),
183 menu.setGroupVisible(getMenuGroupResId(MenuGroupType.EMAIL_GROUP),
185 menu.setGroupVisible(getMenuGroupResId(MenuGroupType.GEO_GROUP),
187 menu.setGroupVisible(getMenuGroupResId(MenuGroupType.ANCHOR_GROUP),
203 menu.setHeaderTitle(decodedPhoneExtra);
206 menu.findItem(getMenuResIdForMenuType(MenuType.DIAL_MENU));
214 menu.findItem(getMenuResIdForMenuType(MenuType.SMS_MENU));
226 menu.findItem(getMenuResIdForMenuType(MenuType.ADD_CONTACT_MENU));
232 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_PHONE_MENU)).
237 menu.setHeaderTitle(extra);
238 menu.findItem(getMenuResIdForMenuType(MenuType.EMAIL_CONTACT_MENU)).setIntent(
241 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_MAIL_MENU)).
246 menu.setHeaderTitle(extra);
255 menu.findItem(getMenuResIdForMenuType(MenuType.MAP_MENU));
260 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_GEO_MENU)).
266 // FIXME: Make this look like the normal menu header
267 // We cannot use the normal menu header because we need to
271 menu.setHeaderView(titleView);
273 menu.findItem(getMenuResIdForMenuType(MenuType.SHARE_LINK_MENU)).setVisible(
282 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_LINK_MENU)).
286 menu.findItem(getMenuResIdForMenuType(MenuType.OPEN_MENU));
291 menu.findItem(getMenuResIdForMenuType(MenuType.SHARE_LINK_MENU)).
305 * Returns the menu type from the given resource id
306 * @param menuResId resource id of the menu
307 * @return MenuType for the specified menu resource id
312 * Returns the menu resource id for the specified menu type
313 * @param menuType type of the specified menu
314 * @return menu resource id
319 * Returns the resource id of the string to be used when showing a chooser for a menu
320 * @param menuType type of the specified menu
326 * Returns the resource id of the layout to be used for the title of the specified menu
327 * @param menuType type of the specified menu
333 * Returns the menu group resource id for the specified menu group type.
334 * @param menuGroupType menu group type
335 * @return menu group resource id
340 * Returns the resource id for the web view context menu
346 * Called when a menu item is not handled by the context menu.