/external/webkit/Source/WebCore/platform/wx/ |
ContextMenuWx.cpp | 31 #include "wx/menu.h" 90 void ContextMenu::setPlatformDescription(PlatformMenuDescription menu) 92 if (!menu) 98 m_platformDescription = menu;
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SimpleModel.java | 31 import android.view.Menu; 73 public boolean onCreateOptionsMenu(Menu menu) { 75 inflater.inflate(R.menu.loader_menu, menu);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PickerActivity.java | 24 import android.view.Menu; 65 public boolean onCreateOptionsMenu(Menu menu) { 67 inflater.inflate(R.menu.pickup, menu);
|
MovieActivity.java | 30 import android.view.Menu; 111 public boolean onCreateOptionsMenu(Menu menu) { 112 super.onCreateOptionsMenu(menu); 114 getMenuInflater().inflate(R.menu.movie, menu); 115 ShareActionProvider provider = GalleryActionBar.initializeShareActionProvider(menu);
|
/cts/tests/src/android/app/cts/ |
InstrumentationTestActivity.java | 26 import android.view.Menu; 165 public boolean onMenuOpened(int featureId, Menu menu) { 167 return super.onMenuOpened(featureId, menu); 171 public boolean onCreateOptionsMenu(Menu menu) { 172 super.onCreateOptionsMenu(menu); 174 inflater.inflate(R.menu.browser, menu); 176 menu.add("title") [all...] |
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
ActionBarHelperBase.java | 27 import android.view.Menu; 70 SimpleMenu menu = new SimpleMenu(mActivity); local 71 mActivity.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu); 72 mActivity.onPrepareOptionsMenu(menu); 73 for (int i = 0; i < menu.size(); i++) { 74 MenuItem item = menu.getItem(i); 124 * Action bar helper code to be run in {@link Activity#onCreateOptionsMenu(android.view.Menu)}. 126 * NOTE: This code will mark on-screen menu items as invisible. 129 public boolean onCreateOptionsMenu(Menu menu) { [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
FingerPaint.java | 22 import android.view.Menu; 140 private static final int COLOR_MENU_ID = Menu.FIRST; 141 private static final int EMBOSS_MENU_ID = Menu.FIRST + 1; 142 private static final int BLUR_MENU_ID = Menu.FIRST + 2; 143 private static final int ERASE_MENU_ID = Menu.FIRST + 3; 144 private static final int SRCATOP_MENU_ID = Menu.FIRST + 4; 147 public boolean onCreateOptionsMenu(Menu menu) { 148 super.onCreateOptionsMenu(menu); 150 menu.add(0, COLOR_MENU_ID, 0, "Color").setShortcut('3', 'c') [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
WordActivity.java | 28 import android.view.Menu; 68 public boolean onCreateOptionsMenu(Menu menu) { 70 inflater.inflate(R.menu.options_menu, menu); 74 SearchView searchView = (SearchView) menu.findItem(R.id.search).getActionView();
|
/external/chromium/chrome/browser/status_icons/ |
status_icon.h | 37 // Set the context menu for this icon. The icon takes ownership of the passed 38 // context menu. Passing NULL results in no menu at all. 39 void SetContextMenu(ui::MenuModel* menu); 46 // in the context menu being displayed will not be passed to this observer 47 // (i.e. if there's a context menu set on this status icon, and the user 48 // right clicks on the icon to display the context menu, OnClicked will not 56 // context menu (if any). 68 // subclass update the native context menu based on the new model. If NULL is 69 // passed, subclass should destroy the native context menu [all...] |
/external/chromium/chrome/browser/ui/cocoa/status_icons/ |
status_icon_mac.h | 32 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);
|
/external/chromium/chrome/browser/ui/gtk/status_icons/ |
status_icon_gtk.h | 33 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu); 42 // The context menu for this icon (if any).
|
/external/webkit/Source/WebKit/efl/ewk/ |
ewk_contextmenu.h | 23 * @brief Describes the context menu API. 40 * @brief Provides the actions of items for the context menu. 79 EWK_CONTEXT_MENU_ITEM_TAG_SPELLING_MENU, /**< spelling or spelling/grammar sub-menu */ 84 EWK_CONTEXT_MENU_ITEM_TAG_FONT_MENU, /**< font sub-menu */ 92 EWK_CONTEXT_MENU_ITEM_TAG_SPEECH_MENU, /**< speech sub-menu */ 95 EWK_CONTEXT_MENU_ITEM_TAG_WRITING_DIRECTION_MENU, /**< writing direction sub-menu */ 102 EWK_CONTEXT_MENU_ITEM_TAG_TEXT_DIRECTION_MENU, /**< text direction sub-menu */ 123 * @brief Defines the types of the items for the context menu. 145 EAPI void ewk_context_menu_ref(Ewk_Context_Menu* menu); 146 EAPI void ewk_context_menu_unref(Ewk_Context_Menu* menu); [all...] |
/external/webkit/Source/WebKit/win/WebCoreSupport/ |
WebContextMenuClient.cpp | 58 OwnPtr<ContextMenu> menu = popMenu; local 62 return menu.release(); 66 HMENU nativeMenu = menu->nativeMenu(); 72 return menu.release();
|
/packages/apps/Browser/src/com/android/browser/ |
UI.java | 24 import android.view.Menu; 100 public boolean onPrepareOptionsMenu(Menu menu); 102 public void updateMenuState(Tab tab, Menu menu); 114 public void onContextMenuCreated(Menu menu); 116 public void onContextMenuClosed(Menu menu, boolean inLoad);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
MockSearchSettings.java | 19 import android.view.Menu; 26 public void addMenuItems(Menu menu, boolean showDisabled) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ShowWithinMenu.java | 14 import org.eclipse.swt.widgets.Menu; 30 protected void addMenuItems(Menu menu) { 42 new ActionContributionItem(action).fill(menu, -1); 44 new Separator().fill(menu, -1); 50 new ActionContributionItem(action).fill(menu, -1);
|
/external/chromium/chrome/browser/resources/ |
menu.js | 20 * @param {number} index The index of menu item to activate in menu model. 39 * Decorates the menu item element. 42 this.className = 'menu-item'; 47 * @param {Menu} menu A {@code Menu} object to which this menu item 49 * @param {Object} attrs JSON object that represents this menu items 50 * properties. This is created from menu model in C code. Se [all...] |
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
MyRssReader5.java | 27 import android.view.Menu; 116 // Add our initial menu options. We will tweak this menu when it's loaded swap out 119 public boolean onCreateOptionsMenu(Menu menu){ 122 super.onCreateOptionsMenu(menu); 124 menu.add(0, 0, R.string.menu_option_start, null); 125 menu.add(0, 1, R.string.menu_option_stop, null); 126 menu.add(0, 2, R.string.menu_option_add, null); 127 menu.add(0, 3, R.string.menu_option_delete, null) [all...] |
/external/webkit/Source/WebCore/platform/qt/ |
ContextMenuItemQt.cpp | 107 void ContextMenuItem::setSubMenu(ContextMenu* menu) 109 m_platformDescription.subMenuItems = *menu->platformDescription();
|
/packages/apps/Stk/src/com/android/stk/ |
StkMenuActivity.java | 35 import com.android.internal.telephony.cat.Menu; 39 * ListActivity used for displaying STK menus. These can be SET UP MENU and 41 * menu content. 46 private Menu mStkMenu = null; 184 public boolean onCreateOptionsMenu(android.view.Menu menu) { 185 super.onCreateOptionsMenu(menu); 186 menu.add(0, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session); 187 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); 192 public boolean onPrepareOptionsMenu(android.view.Menu menu) [all...] |
/development/apps/Development/src/com/android/development/ |
InstrumentationList.java | 29 import android.view.Menu; 120 public boolean onCreateOptionsMenu(Menu menu) 122 super.onCreateOptionsMenu(menu); 123 mProfilingItem = menu.add(0, 0, 0, "Profiling Mode") 130 public boolean onPrepareOptionsMenu(Menu menu) 132 super.onPrepareOptionsMenu(menu);
|
/external/webkit/Source/WebCore/platform/mac/ |
ContextMenuItemMac.mm | 35 static NSMutableArray* menuToArray(NSMenu* menu) 38 int total = [menu numberOfItems]; 40 [itemsArray addObject:[menu itemAtIndex:i]]; 145 void ContextMenuItem::setSubMenu(ContextMenu* menu) 147 NSArray* subMenuArray = menu->platformDescription();
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
MenuExecutor.java | 25 import android.view.Menu; 140 Menu menu, int id, boolean visibility) { 141 MenuItem item = menu.findItem(id); 145 public static void updateMenuOperation(Menu menu, int supported) { 157 setMenuItemVisibility(menu, R.id.action_delete, supportDelete); 158 setMenuItemVisibility(menu, R.id.action_rotate_ccw, supportRotate); 159 setMenuItemVisibility(menu, R.id.action_rotate_cw, supportRotate); 160 setMenuItemVisibility(menu, R.id.action_crop, supportCrop) [all...] |
/external/chromium/chrome/browser/ui/views/extensions/ |
browser_action_overflow_menu_controller.cc | 16 #include "views/controls/menu/menu_2.h" 17 #include "views/controls/menu/menu_item_view.h" 33 size_t command_id = 1; // Menu id 0 is reserved, start with 1. 73 // Give the context menu (if any) a chance to execute the user-selected 105 // This blocks until the user choses something or dismisses the menu. 108 // The user is done with the context menu, so we can close the underlying 109 // menu. 116 views::MenuItemView* menu) { 121 views::MenuItemView* menu, 129 views::MenuItemView* menu) { [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ListMenuPresenter.java | 17 package com.android.internal.view.menu; 55 public static final String VIEWS_TAG = "android:menu:list"; 80 public void initForMenu(Context context, MenuBuilder menu) { 90 mMenu = menu; 112 * @return A ListAdapter containing the items in the menu. 144 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { 146 mCallback.onCloseMenu(menu, allMenusAreClosing); 171 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { 175 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { 246 // Since a menu item's ID is optional, we'll use the position as a [all...] |