HomeSort by relevance Sort by last modified time
    Searched refs:popup (Results 1 - 25 of 140) sorted by null

1 2 3 4 5 6

  /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();
  /external/chromium_org/chrome/browser/ui/views/extensions/
extension_dialog_observer.h 19 virtual void ExtensionDialogClosing(ExtensionDialog* popup) = 0;
22 virtual void ExtensionTerminated(ExtensionDialog* popup) = 0;
  /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();
  /external/chromium_org/chrome/common/extensions/docs/static/js/
popup.js 7 // A simple popup manager.
11 // Set up the buttons to toggle the popup.
17 var popup = document.getElementById(popupId);
18 if (popup == null)
19 throw new Error('No element with id "' + popupId + '" for popup');
21 toggle(popup);
25 // Make clicking anywhere else or pressing escape on the page hide the popup.
35 function toggle(popup) {
36 if (hideActive() == popup)
38 popup.style.display = 'block'
    [all...]
  /external/chromium_org/components/web_modal/
single_popup_manager.h 24 virtual void WillClose(NativePopup popup) = 0;
32 // The rule of thumb is that only one popup will be shown at a time per tab.
46 // Makes the popup visible.
49 // Hides the popup without closing it.
52 // Closes the popup.
58 // Sets focus on the popup.
61 // Pulsates the popup to draw the user's attention to it.
64 // Returns the popup under management by this object.
65 virtual NativePopup popup() = 0;
67 // Returns true if the popup under management was initiated by a use
    [all...]
popup_manager.h 35 // Schedules a popup governed by the |manager| to be shown. The popup
41 virtual void ShowModalDialog(NativePopup popup,
51 virtual void WillClose(NativePopup popup) OVERRIDE;
55 // one popup may actually be shown (depending on overlappability). The
61 // PopupManager from a |web_contents|. Any window which doesn't have a popup
popup_manager.cc 48 // TODO(gbillock): remove when we port the popup management logic to this
51 static_cast<NativeWebContentsModalDialog>(manager->popup());
59 void PopupManager::ShowModalDialog(NativePopup popup,
61 // TODO make a new native popup manager and call ShowPopup.
65 manager->ShowModalDialog(popup);
88 void PopupManager::WillClose(NativePopup popup) {
95 // popup managers with popups in-flight?
101 // popup managers with popups in-flight?
  /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);
  /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/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...]
  /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;
  /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/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...]
  /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
  /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
135 Shell* popup = OpenWindowFromJavaScript(shell(), url2); local
136 NavigateToURL(popup, url3);
137 EXPECT_TRUE(AttemptCloseFromJavaScript(popup->web_contents()))
    [all...]
  /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.get());
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/tabs/
pinned_tab_service_unittest.cc 48 // Makes sure closing a popup triggers writing pinned tabs.
49 TEST_F(PinnedTabServiceTest, Popup) {
54 // Create a popup.
57 scoped_ptr<Browser> popup(
68 // Close the popup. This shouldn't reset the saved state.
69 popup->tab_strip_model()->CloseAllTabs();
70 popup.reset(NULL);
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
TintSpinner.java 74 Object popup = popupField.get(view); local
76 if (popup instanceof ListPopupWindow) {
77 ((ListPopupWindow) popup).setBackgroundDrawable(background);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
PopupList.java 120 // Need to update the position of the popup window
139 PopupWindow popup = mPopupWindow; local
142 popup.getBackground().getPadding(p);
155 PopupWindow popup = new PopupWindow(mContext); local
156 popup.setOnDismissListener(mOnDismissListener);
158 popup.setBackgroundDrawable(mContext.getResources().getDrawable(
165 popup.setContentView(mContentList);
166 popup.setFocusable(true);
167 popup.setOutsideTouchable(true);
169 return popup;
    [all...]
  /external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/appmenu/
AppMenuTest.java 26 * Tests AppMenu popup
250 ListPopupWindow popup = mAppMenu.getPopup(); local
251 if (popup == null || popup.getListView() == null) return ListView.INVALID_POSITION;
252 ListView listView = popup.getListView();
257 ListPopupWindow popup = mAppMenu.getPopup(); local
258 if (popup == null || popup.getListView() == null) return 0;
259 return popup.getListView().getCount();
  /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/third_party/WebKit/Source/core/accessibility/
AXMenuList.cpp 109 if (AXMenuListPopup* popup = toAXMenuListPopup(childObjects[0].get()))
110 popup->didUpdateActiveOption(optionIndex);
  /external/chromium_org/third_party/WebKit/Source/web/resources/
calendarPicker.css 165 .month-popup-button,
166 .month-popup-button:hover,
167 .month-popup-button:disabled {
174 .month-popup-button:disabled {
178 .month-popup-button {
187 .month-popup-button .disclosure-triangle {
191 .month-popup-button .disclosure-triangle svg {
284 .month-popup-view {
310 .month-popup-button:focus,

Completed in 1443 milliseconds

1 2 3 4 5 6