/external/webkit/Source/WebCore/platform/wx/ |
ContextMenuItemWx.cpp | 34 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) 38 if (subMenu) 39 setSubMenu(subMenu); 41 m_platformDescription.subMenu = 0; 45 const String& title, ContextMenu* subMenu) 50 if (subMenu) 51 setSubMenu(subMenu); 53 m_platformDescription.subMenu = 0; 95 void ContextMenuItem::setSubMenu(ContextMenu* subMenu) 97 m_platformDescription.subMenu = subMenu->releasePlatformDescription() [all...] |
ContextMenuWx.cpp | 73 if (itemDescription.subMenu) { 74 itemWx = new wxMenuItem(m_platformDescription, idWx, titleWx, wxEmptyString, wxITEM_NORMAL, itemDescription.subMenu);
|
/external/webkit/Source/WebCore/platform/mac/ |
ContextMenuItemMac.mm | 50 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) 57 if (subMenu) 58 setSubMenu(subMenu); 74 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu) 78 if (subMenu) 79 setSubMenu(subMenu); 126 return menuToArray([m_platformDescription.get() submenu]); 148 NSMenu* subMenu = [[NSMenu alloc] init]; 149 [subMenu setAutoenablesItems:NO]; 151 [subMenu insertItem:[subMenuArray objectAtIndex:i] atIndex:i] [all...] |
/external/webkit/Source/WebCore/platform/ |
ContextMenuItem.cpp | 35 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu) 42 if (subMenu) 43 setSubMenu(subMenu); 69 void ContextMenuItem::setSubMenu(ContextMenu* subMenu) 71 if (subMenu) { 73 m_subMenuItems = subMenu->items();
|
/external/webkit/Source/WebCore/platform/qt/ |
ContextMenuItemQt.cpp | 34 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) 38 if (subMenu) 39 setSubMenu(subMenu); 43 const String& title, ContextMenu* subMenu) 48 if (subMenu) 49 setSubMenu(subMenu);
|
/external/webkit/Source/WebCore/platform/haiku/ |
ContextMenuItemHaiku.cpp | 46 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) 48 m_platformDescription = new BMenuItem(subMenu->platformDescription(), 53 const String& title, ContextMenu* subMenu) 60 m_platformDescription = new BMenuItem(subMenu->platformDescription(), new BMessage(action)); 81 if (m_platformDescription->Submenu()) 90 BMenu* subMenu = platformSubMenu(); 98 if (subMenu) { 99 m_platformDescription = new BMenuItem(subMenu, new BMessage(theAction)); 134 return m_platformDescription->Submenu();
|
/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 | 239 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 240 if (!subMenu.hasVisibleItems()) return false; 242 SubMenuBuilder topSubMenu = subMenu; 252 mOpenSubMenuId = subMenu.getItem().getItemId(); 253 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu); 256 super.onSubMenuSelected(subMenu); 327 * Dismiss all submenu popups. 506 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 507 onSubMenuSelected(subMenu); 515 // Not a submenu, but treat it like one [all...] |
/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...] |
/frameworks/base/core/java/android/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 | 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/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; 202 public void onPrepareSubMenu(SubMenu subMenu) { 204 subMenu.clear(); 215 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 222 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,
|
/external/webkit/Source/WebCore/platform/brew/ |
ContextMenuItemBrew.cpp | 43 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) 49 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu) 114 void ContextMenuItem::setSubMenu(ContextMenu* subMenu)
|
/external/webkit/Source/WebCore/platform/chromium/ |
ContextMenuItemChromium.cpp | 43 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) 47 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu) 108 void ContextMenuItem::setSubMenu(ContextMenu* subMenu)
|
/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;
|
/external/webkit/Source/WebCore/platform/gtk/ |
ContextMenuItemGtk.cpp | 131 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu) 151 if (subMenu) 152 setSubMenu(subMenu); 220 GtkWidget* subMenu = gtk_menu_item_get_submenu(m_platformDescription); 221 return subMenu ? GTK_MENU(subMenu) : 0;
|
/external/webkit/Source/WebKit2/UIProcess/win/ |
WebContextMenuProxyWin.cpp | 62 HMENU subMenu = ::CreatePopupMenu(); 63 populateMenu(subMenu, itemData.submenu()); 65 ::AppendMenu(menu, MF_POPUP, reinterpret_cast<UINT>(subMenu), title.charactersWithNullTermination());
|
/external/webkit/Source/WebKit2/UIProcess/qt/ |
WebContextMenuProxyQt.cpp | 126 if (OwnPtr<QMenu> subMenu = createContextMenu(item.submenu())) { 127 subMenu->setParent(menu.get()); 128 QMenu* const subMenuPtr = subMenu.leakPtr(); 129 subMenu->setTitle(item.title());
|
/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...] |