/development/samples/ApiDemos/src/com/example/android/apis/view/ |
PopupMenu1.java | 30 * show a popup menu from an XML resource. 40 PopupMenu popup = new PopupMenu(this, button); local 41 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu()); 43 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { 45 Toast.makeText(PopupMenu1.this, "Clicked popup menu item " + item.getTitle(), 51 popup.show();
|
/frameworks/support/v4/kitkat/android/support/v4/widget/ |
PopupWindowCompatKitKat.java | 28 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, 30 popup.showAsDropDown(anchor, xoff, yoff, gravity);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
UiClosables.java | 29 * @param popup The popup window to close. 30 * @return {@code true} if the popup was showing. {@code false} otherwise. 32 public static boolean closeQuietly(ListPopupWindow popup) { 33 if (popup != null && popup.isShowing()) { 34 popup.dismiss();
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
OtherSettingIndicatorButton.java | 58 OtherSettingsPopup popup = (OtherSettingsPopup) inflater.inflate( local 60 popup.setSettingChangedListener(mListener); 61 popup.initialize(mPreferenceGroup, mPrefKeys); 62 root.addView(popup); 63 mPopup = popup;
|
/developers/build/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/src/main/java/com/example/android/actionbarcompat/listpopupmenu/ |
PopupListFragment.java | 61 // We need to post a Runnable to show the popup to make sure that the PopupMenu is 80 PopupMenu popup = new PopupMenu(getActivity(), view); local 83 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu()); 86 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { 100 popup.show(); 119 // Retrieve the popup button from the inflated view
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListPopupMenu/Application/src/main/java/com/example/android/actionbarcompat/listpopupmenu/ |
PopupListFragment.java | 61 // We need to post a Runnable to show the popup to make sure that the PopupMenu is 80 PopupMenu popup = new PopupMenu(getActivity(), view); local 83 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu()); 86 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { 100 popup.show(); 119 // Retrieve the popup button from the inflated view
|
/development/samples/browseable/ActionBarCompat-ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/ |
PopupListFragment.java | 61 // We need to post a Runnable to show the popup to make sure that the PopupMenu is 80 PopupMenu popup = new PopupMenu(getActivity(), view); local 83 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu()); 86 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { 100 popup.show(); 119 // Retrieve the popup button from the inflated view
|
/frameworks/testing/espresso/espresso-sample/src/main/java/com/google/android/apps/common/testing/ui/testapp/ |
MenuActivity.java | 33 * Shows MenuActivity with Options menu, Context menu and Popup menu. Click on a menu item changes 78 PopupMenu popup = new PopupMenu(this, view); local 79 popup.setOnMenuItemClickListener(new PopupMenuListener()); 80 popup.getMenuInflater().inflate(R.menu.popupmenu, popup.getMenu()); 81 popup.show();
|
/external/chromium_org/chrome/browser/extensions/ |
process_manager_browsertest.cc | 73 // Load an extension with the ability to open a popup but no background 75 scoped_refptr<const Extension> popup = local 78 .AppendASCII("popup")); 79 ASSERT_TRUE(popup); 84 EXPECT_FALSE(pm->GetBackgroundHostForExtension(popup->id())); 85 EXPECT_EQ(0u, pm->GetRenderViewHostsForExtension(popup->id()).size()); 86 EXPECT_TRUE(pm->GetSiteInstanceForURL(popup->url())); 87 EXPECT_FALSE(pm->IsBackgroundHostClosing(popup->id())); 88 EXPECT_EQ(0, pm->GetLazyKeepaliveCount(popup.get())); 90 // Simulate clicking on the action to open a popup [all...] |
/external/chromium_org/chrome/browser/ui/android/ |
navigation_popup.cc | 89 NavigationPopup* popup = new NavigationPopup(env, obj); local 90 return reinterpret_cast<intptr_t>(popup);
|
/external/chromium_org/chrome/browser/ui/cocoa/extensions/ |
extension_popup_controller.h | 28 // This controller manages a single browser action popup that can appear once a 30 // popup view showing the content and resizes the window to accomodate any size 33 // There can only be one browser action popup open at a time, so a static 34 // variable holds a reference to the current popup. 51 // Whether the popup has a devtools window attached to it. 62 // Returns the ExtensionViewHost object associated with this popup. 65 // Starts the process of showing the given popup URL. Instantiates an 67 // host for the popup created by the extension process manager specific to the 71 // The actual display of the popup is delayed until the page contents finish 73 // Passing YES to |devMode| will launch the webkit inspector for the popup, 86 + (ExtensionPopupController*)popup; variable [all...] |
/packages/apps/Camera/src/com/android/camera/ |
PhotoController.java | 41 // First level popup 43 // Second level popup 136 // Hit when an item in the second-level popup gets selected 156 MoreSettingPopup popup = (MoreSettingPopup) inflater.inflate( local 158 popup.setSettingChangedListener(this); 159 popup.initialize(mPreferenceGroup, mOtherKeys); 162 popup.setPreferenceEnabled(CameraSettings.KEY_RECORD_LOCATION, false); 164 mPopup = popup; 168 // if the 2nd level popup gets dismissed 201 // Hit when an item in the first-level popup gets selected, then bring u [all...] |
VideoController.java | 124 // Hit when an item in the second-level popup gets selected 138 MoreSettingPopup popup = (MoreSettingPopup) inflater.inflate( local 140 popup.setSettingChangedListener(this); 141 popup.initialize(mPreferenceGroup, mOtherKeys); 144 popup.setPreferenceEnabled(CameraSettings.KEY_RECORD_LOCATION, false); 146 mPopup = popup; 150 // if the 2nd level popup gets dismissed 159 // Hit when an item in the first-level popup gets selected, then bring up 160 // the second-level popup
|
/external/chromium_org/chrome/browser/ui/blocked_content/ |
popup_blocker_tab_helper.cc | 77 // commits, so when we reach here, the popup was spawned by the 79 // example, if a page opens a popup in an onunload() handler, then the active 116 BlockedRequest* popup = blocked_popups_.Lookup(id); local 117 if (!popup) 119 // We set user_gesture to true here, so the new popup gets correctly focused. 120 popup->params.user_gesture = true; 122 TabModelList::HandlePopupNavigation(&popup->params); 124 chrome::Navigate(&popup->params); 126 if (popup->params.target_contents) { 127 popup->params.target_contents->Send(new ChromeViewMsg_SetWindowFeatures [all...] |
/external/chromium_org/content/browser/web_contents/ |
opened_by_dom_browsertest.cc | 71 // Wait for the popup to be created and for it to have navigated. 100 // Tests that window.close() works in a popup window that has navigated a few 102 IN_PROC_BROWSER_TEST_F(OpenedByDOMTest, Popup) { 110 Shell* popup = OpenWindowFromJavaScript(shell(), url2); local 111 NavigateToURL(popup, url3); 112 EXPECT_TRUE(AttemptCloseFromJavaScript(popup->web_contents())); 115 // Tests that window.close() works in a popup window that has navigated a few 134 Shell* popup = OpenWindowFromJavaScript(shell(), url2); local 135 NavigateToURL(popup, url3); 136 EXPECT_TRUE(AttemptCloseFromJavaScript(popup->web_contents())) [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
PopupWindowCompat.java | 32 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, 41 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, 43 popup.showAsDropDown(anchor, xoff, yoff); 52 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, 54 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); 76 * <p>Display the content view in a popup window anchored to the bottom-left 79 * the popup in its entirety, this method tries to find a parent scroll 81 * corner of the popup is pinned at the top left corner of the anchor view.</p> 83 * location, the popup will be moved correspondingly.</p> 85 * @param popup the PopupWindow to sho [all...] |
/external/chromium_org/third_party/WebKit/Tools/TestResultServer/static-dashboards/ |
ui.js | 33 ui.popup = {}; 35 ui.popup.hide = function() 37 var popup = $('popup'); 38 if (popup) { 39 popup.parentNode.removeChild(popup); 40 document.removeEventListener('mousedown', ui.popup._handleMouseDown, false); 44 ui.popup.show = function(target, html) 46 var popup = $('popup') [all...] |
/packages/apps/Browser/src/com/android/browser/ |
NavScreen.java | 82 PopupMenu popup = new PopupMenu(mContext, mMore); local 83 Menu menu = popup.getMenu(); 84 popup.getMenuInflater().inflate(R.menu.browser, menu); 86 popup.setOnMenuItemClickListener(this); 87 popup.show();
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/ |
NavigationPopupTest.java | 26 * Tests for the navigation popup. 84 final NavigationPopup popup = new NavigationPopup( local 86 popup.setWidth(300); 87 popup.setAnchorView(mActivity.getActiveContentViewCore().getContainerView()); 91 popup.show(); 119 popup.dismiss(); 128 final NavigationPopup popup = new NavigationPopup( local 130 popup.setWidth(300); 131 popup.setAnchorView(mActivity.getActiveContentViewCore().getContainerView()); 135 popup.show() [all...] |
/external/chromium_org/chrome/browser/ui/views/extensions/ |
extension_popup.cc | 32 // The minimum/maximum dimensions of the popup. 59 // Wait to show the popup until the contained host finishes loading. 90 // If we aren't the host of the popup, then disregard the notification. 102 // First check that the devtools are being opened on this popup. 107 // Set inspect_with_devtools_ so the popup will be kept open while 122 // Constrain the size to popup min/max. 142 // If the popup was being inspected with devtools and the browser window was 192 ExtensionPopup* popup = new ExtensionPopup(host, anchor_view, arrow, local 194 views::BubbleDelegateView::CreateBubble(popup); 196 gfx::NativeView native_view = popup->GetWidget()->GetNativeView() [all...] |
/external/chromium_org/chrome/browser/ui/views/ |
status_bubble_views.h | 42 // Reposition the bubble's popup - as we are using a WS_POPUP for the bubble, 64 views::Widget* GetPopupForTest() { return popup(); } 67 views::Widget* popup() { return popup_.get(); } function in class:StatusBubbleViews 74 // Initializes the popup and view. 130 // We use a HWND for the popup so that it may float above any HWNDs in our
|
/external/chromium_org/chrome/common/extensions/api/extension_action/ |
action_info.cc | 128 // Read the action's |popup| (optional). 146 const base::DictionaryValue* popup = NULL; local 152 dict->GetDictionary(popup_key, &popup)) { 153 if (!popup->GetString(keys::kPageActionPopupPath, &url_str)) { 164 // An empty string is treated as having no popup. 174 << "Shouldn't be possible for the popup to be set.";
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
ContentViewPopupZoomerTest.java | 38 PopupZoomer popup = findPopupZoomer(mView); local 39 boolean isVisibilitySet = popup == null ? false : popup.getVisibility() == View.VISIBLE; 51 PopupZoomer popup = findPopupZoomer(mView); local 52 if (popup == null) return false; 53 return popup.getWidth() != 0 && popup.getHeight() != 0; 77 * Tests that shows a zoomer popup and makes sure it has valid dimensions. 90 // The popup should be hidden before the click. 91 assertTrue("The zoomer popup is shown after load." [all...] |
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/ |
AutofillPopupTest.java | 177 final AutofillPopup popup = (AutofillPopup) anchorView.getTag(); local 179 waitForAutofillPopopShow(popup); 182 touchCommon.singleClickViewRelative(popup.getListView(), 10, 10); 305 assertTrue("Autofill Popup anchor view was never added.", 314 private void waitForAutofillPopopShow(final AutofillPopup popup) throws InterruptedException { 315 assertTrue("Autofill Popup anchor view was never added.", 319 return popup.isShowing();
|
/external/chromium_org/chrome/browser/ui/ash/ |
window_positioner_unittest.cc | 55 // base by adding a window and a popup which can be independently 66 aura::Window* popup() { return popup_.get(); } function in class:ash::test::WindowPositionerTest 115 // Creating a browser for the popup. 125 popup()->Hide(); 230 popup()->SetBounds(top_left); 231 popup()->Show(); 239 // Block now everything so that we can only put the popup on the bottom 243 popup()->SetBounds(gfx::Rect(work_area.x(), work_area.y(), 255 popup()->SetBounds(gfx::Rect(work_area.x(), work_area.y(), 274 // Check that the popup is placed full screen [all...] |