/external/chromium_org/third_party/WebKit/Source/core/platform/ |
ContextMenuItem.cpp | 33 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu) 40 if (subMenu) 41 setSubMenu(subMenu); 67 void ContextMenuItem::setSubMenu(ContextMenu* subMenu) 69 if (subMenu) { 71 m_subMenuItems = subMenu->items();
|
ContextMenuItem.h | 53 ContextMenuItem(ContextMenuItemType, ContextMenuAction, const String&, ContextMenu* subMenu = 0);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuPresenter.java | 41 * Called when a submenu opens. Useful for notifying the application 43 * while a submenu is open or similar. 45 * @param subMenu Submenu currently being opened 46 * @return true if the Callback will handle presenting the submenu, false if 49 public boolean onOpenSubMenu(MenuBuilder subMenu); 87 * Called by Menu implementations to indicate that a submenu item 89 * if applicable the presenter should present the submenu. 91 * @param subMenu SubMenu being opene [all...] |
IconMenuPresenter.java | 43 private static final String OPEN_SUBMENU_KEY = "android:menu:icon:submenu"; 89 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 90 if (!subMenu.hasVisibleItems()) return false; 93 MenuDialogHelper helper = new MenuDialogHelper(subMenu); 97 mOpenSubMenuId = subMenu.getItem().getItemId(); 98 super.onSubMenuSelected(subMenu); 187 public boolean onOpenSubMenu(MenuBuilder subMenu) { 188 if (subMenu != null) { 189 mOpenSubMenuId = ((SubMenuBuilder) subMenu).getItem().getItemId();
|
ActionMenuPresenter.java | 269 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 270 if (!subMenu.hasVisibleItems()) return false; 272 SubMenuBuilder topSubMenu = subMenu; 282 mOpenSubMenuId = subMenu.getItem().getItemId(); 283 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu); 286 super.onSubMenuSelected(subMenu); 357 * Dismiss all submenu popups. 540 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 541 onSubMenuSelected(subMenu); 549 // Not a submenu, but treat it like one [all...] |
MenuPopupHelper.java | 274 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 275 if (subMenu.hasVisibleItems()) { 276 MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, mAnchorView, false); 280 final int count = subMenu.size(); 282 MenuItem childItem = subMenu.getItem(i); 292 mPresenterCallback.onOpenSubMenu(subMenu);
|
ListMenuPresenter.java | 135 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 136 if (!subMenu.hasVisibleItems()) return false; 139 new MenuDialogHelper(subMenu).show(null); 141 mCallback.onOpenSubMenu(subMenu);
|
MenuDialogHelper.java | 159 public boolean onOpenSubMenu(MenuBuilder subMenu) { 161 return mPresenterCallback.onOpenSubMenu(subMenu);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
MenuPresenter.java | 44 * Called when a submenu opens. Useful for notifying the application of menu state so that 45 * it does not attempt to hide the action bar while a submenu is open or similar. 47 * @param subMenu Submenu currently being opened 48 * @return true if the Callback will handle presenting the submenu, false if the presenter 51 public boolean onOpenSubMenu(MenuBuilder subMenu); 90 * Called by Menu implementations to indicate that a submenu item has been selected. An active 91 * Callback should be notified, and if applicable the presenter should present the submenu. 93 * @param subMenu SubMenu being opene [all...] |
SubMenuWrapperICS.java | 22 import android.view.SubMenu; 26 SubMenuWrapperICS(android.view.SubMenu subMenu) { 27 super(subMenu); 31 public android.view.SubMenu getWrappedObject() { 32 return (android.view.SubMenu) mWrappedObject; 36 public SubMenu setHeaderTitle(int titleRes) { 37 ((android.view.SubMenu) mWrappedObject).setHeaderTitle(titleRes); 42 public SubMenu setHeaderTitle(CharSequence title) { 43 ((android.view.SubMenu) mWrappedObject).setHeaderTitle(title) [all...] |
ActionMenuPresenter.java | 248 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 249 if (!subMenu.hasVisibleItems()) { 253 SubMenuBuilder topSubMenu = subMenu; 265 mOpenSubMenuId = subMenu.getItem().getItemId(); 266 mActionButtonPopup = new ActionButtonSubmenu(subMenu); 268 super.onSubMenuSelected(subMenu); 343 * Dismiss all submenu popups. 523 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 524 onSubMenuSelected(subMenu); 532 // Not a submenu, but treat it like one [all...] |
MenuPopupHelper.java | 233 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 234 if (subMenu.hasVisibleItems()) { 235 MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, mAnchorView, false); 239 final int count = subMenu.size(); 241 MenuItem childItem = subMenu.getItem(i); 251 mPresenterCallback.onOpenSubMenu(subMenu);
|
ListMenuPresenter.java | 144 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 145 if (!subMenu.hasVisibleItems()) return false; 148 new MenuDialogHelper(subMenu).show(null); 150 mCallback.onOpenSubMenu(subMenu);
|
MenuDialogHelper.java | 162 public boolean onOpenSubMenu(MenuBuilder subMenu) { 164 return mPresenterCallback.onOpenSubMenu(subMenu);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
PopupMenu.java | 159 public boolean onOpenSubMenu(MenuBuilder subMenu) { 160 if (subMenu == null) return false; 162 if (!subMenu.hasVisibleItems()) { 166 // Current menu will be dismissed by the normal helper, submenu will be shown in its place. 167 new MenuPopupHelper(mContext, subMenu, mAnchor).show();
|
ShareActionProvider.java | 32 import android.view.SubMenu; 212 public void onPrepareSubMenu(SubMenu subMenu) { 214 subMenu.clear(); 225 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 232 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
TestMenuItem.java | 19 private SubMenu subMenu; 171 return subMenu != null; 175 public SubMenu getSubMenu() { 176 return subMenu; 179 public void setSubMenu(SubMenu subMenu) { 180 this.subMenu = subMenu;
|
/frameworks/base/core/java/android/widget/ |
PopupMenu.java | 218 public boolean onOpenSubMenu(MenuBuilder subMenu) { 219 if (subMenu == null) return false; 221 if (!subMenu.hasVisibleItems()) { 225 // Current menu will be dismissed by the normal helper, submenu will be shown in its place. 226 new MenuPopupHelper(mContext, subMenu, mAnchor).show();
|
ShareActionProvider.java | 29 import android.view.SubMenu; 196 public void onPrepareSubMenu(SubMenu subMenu) { 198 subMenu.clear(); 209 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 216 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,
|
/frameworks/base/core/java/com/android/internal/view/ |
StandaloneActionMode.java | 139 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 140 if (!subMenu.hasVisibleItems()) { 144 new MenuPopupHelper(mContext, subMenu).show();
|
/frameworks/base/core/java/android/view/ |
ActionProvider.java | 179 * Determines if this ActionProvider has a submenu associated with it. 182 * provider instance will receive a call to {@link #onPrepareSubMenu(SubMenu)} 183 * after the call to {@link #onPerformDefaultAction()} and before a submenu is 186 * @return true if the item backed by this provider should have an associated submenu 193 * Called to prepare an associated submenu for the menu item backed by this ActionProvider. 196 * menu item is selected to prepare the submenu for presentation to the user. Apps 197 * may use this to create or alter submenu content right before display. 199 * @param subMenu Submenu that will be displayed 201 public void onPrepareSubMenu(SubMenu subMenu) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
MenuInflaterTest.java | 32 import android.view.SubMenu; 193 SubMenu subMenu = menu.findItem(R.id.submenu).getSubMenu(); 194 assertNotNull(subMenu); 196 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_1).isCheckable()); 197 assertFalse(subMenu.findItem(R.id.nongroup_checkable_item_1).isChecked()); 199 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_2).isCheckable()); 200 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_2).isChecked()); 202 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_3).isCheckable()) [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
ActionProvider.java | 22 import android.view.SubMenu; 186 * Determines if this ActionProvider has a submenu associated with it. 189 * receive a call to {@link #onPrepareSubMenu(SubMenu)} after the call to {@link 190 * #onPerformDefaultAction()} and before a submenu is displayed to the user. 192 * @return true if the item backed by this provider should have an associated submenu 199 * Called to prepare an associated submenu for the menu item backed by this ActionProvider. 202 * selected to prepare the submenu for presentation to the user. Apps may use this to create or 203 * alter submenu content right before display. 205 * @param subMenu Submenu that will be displaye [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
MenuTest.java | 30 import android.view.SubMenu; 235 final SubMenu subMenu = mMenu.addSubMenu(0, 0, 0, "submenu"); 236 final MenuItem subMenuItem = subMenu.getItem(); 237 final MenuItem item1 = subMenu.add(0, 1, 0, "item1"); 238 final MenuItem item2 = subMenu.add(0, 2, 0, "item2");
|
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8InspectorFrontendHostCustom.cpp | 86 } else if (typeString == "subMenu" && subItems->IsArray()) { 87 ContextMenu subMenu; 89 populateContextMenuItems(subItemsArray, subMenu); 93 &subMenu);
|