/external/chromium/chrome/browser/ui/app_modal_dialogs/ |
app_modal_dialog_queue.cc | 9 void AppModalDialogQueue::AddDialog(AppModalDialog* dialog) { 11 ShowModalDialog(dialog); 14 app_modal_dialog_queue_.push(dialog); 18 AppModalDialog* dialog = GetNextDialog(); local 19 if (dialog) 20 ShowModalDialog(dialog); 27 // As part of showing a modal dialog we may end up back in this method 28 // (showing a dialog activates the TabContents, which can trigger a call 30 // activate the tab contents the dialog is shown. 48 void AppModalDialogQueue::ShowModalDialog(AppModalDialog* dialog) { 62 AppModalDialog* dialog = app_modal_dialog_queue_.front(); local [all...] |
native_app_modal_dialog.h | 19 // Shows the dialog. 22 // Activates the dialog. 25 // Closes the dialog. 28 // Accepts or cancels the dialog. 32 // Creates an app modal dialog for a JavaScript prompt. 34 JavaScriptAppModalDialog* dialog,
|
app_modal_dialog_queue.h | 16 // dialog is shown at a time. 23 // Adds a modal dialog to the queue, if there are no other dialogs in the 24 // queue, the dialog will be shown immediately. Once it is shown, the 27 // activate any other browser windows. So the dialog being shown should 31 // Note: The AppModalDialog |dialog| must be window modal before it 33 void AddDialog(AppModalDialog* dialog); 35 // Removes the current dialog in the queue (the one that is being shown). 36 // Shows the next dialog in the queue, if any is present. This does not 37 // ensure that the currently showing dialog is closed, it just makes it no 41 // Activates and shows the current dialog, if the user clicks on one of th [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPreferenceScreen.java | 3 import android.app.Dialog; 12 private Dialog dialog; field in class:ShadowPreferenceScreen 15 public Dialog getDialog() { 16 return dialog; 19 public void setDialog(Dialog dialog) { 20 this.dialog = dialog;
|
ShadowDialogFragment.java | 3 import android.app.Dialog; 23 private Dialog dialog; field in class:ShadowDialogFragment 44 dialog = realDialogFragment.onCreateDialog(null); 46 if (dialog == null) { 47 dialog = new Dialog(activityFromManager); 48 dialog.setContentView(view); 50 dialog.setCancelable(cancelable); 62 if (dialog != null) [all...] |
/frameworks/base/core/java/android/content/ |
DialogInterface.java | 63 * Interface used to allow the creator of a dialog to run some code when the 64 * dialog is canceled. 66 * This will only be called when the dialog is canceled, if the creator 72 * This method will be invoked when the dialog is canceled. 74 * @param dialog The dialog that was canceled will be passed into the 77 public void onCancel(DialogInterface dialog); 81 * Interface used to allow the creator of a dialog to run some code when the 82 * dialog is dismissed. 86 * This method will be invoked when the dialog is dismissed [all...] |
/external/nist-sip/java/javax/sip/ |
DialogTerminatedEvent.java | 6 private Dialog mDialog; 8 public DialogTerminatedEvent(Object source, Dialog dialog) { 10 mDialog = dialog; 13 public Dialog getDialog() {
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ProgressBar3.java | 22 import android.app.Dialog; 64 protected Dialog onCreateDialog(int id) { 67 ProgressDialog dialog = new ProgressDialog(this); local 68 dialog.setTitle("Indeterminate"); 69 dialog.setMessage("Please wait while loading..."); 70 dialog.setIndeterminate(true); 71 dialog.setCancelable(true); 72 return dialog; 75 ProgressDialog dialog = new ProgressDialog(this); local 76 dialog.setMessage("Please wait while loading...") [all...] |
/external/openssh/contrib/ |
gnome-ssh-askpass1.c | 73 GtkWidget *dialog, *entry, *label; local 78 dialog = gnome_dialog_new("OpenSSH", GNOME_STOCK_BUTTON_OK, 85 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), 90 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), entry, FALSE, 96 gtk_object_set(GTK_OBJECT(dialog), "type", GTK_WINDOW_POPUP, NULL); 97 gnome_dialog_set_default(GNOME_DIALOG(dialog), 0); 98 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); 99 gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, TRUE); 100 gnome_dialog_close_hides(GNOME_DIALOG(dialog), TRUE); 101 gtk_container_set_border_width(GTK_CONTAINER(GNOME_DIALOG(dialog)->vbox) [all...] |
gnome-ssh-askpass2.c | 80 ok_dialog(GtkWidget *entry, gpointer dialog) 82 g_return_if_fail(GTK_IS_DIALOG(dialog)); 83 gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); 92 GtkWidget *dialog, *entry; local 99 dialog = gtk_message_dialog_new(NULL, 0, 106 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), entry, FALSE, 112 gtk_window_set_title(GTK_WINDOW(dialog), "OpenSSH"); 113 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); 114 gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE); 115 gtk_label_set_line_wrap(GTK_LABEL((GTK_MESSAGE_DIALOG(dialog))->label) 121 G_CALLBACK(ok_dialog), dialog); local [all...] |
/external/chromium/chrome/browser/ |
platform_util_common_linux.cc | 21 void SetDialogTitle(GtkWidget* dialog, const string16& title) { 22 gtk_window_set_title(GTK_WINDOW(dialog), UTF16ToUTF8(title).c_str()); 25 // The following code requires the dialog to be realized. However, we host 26 // dialog's content in a Chrome window without really realize the dialog 28 gtk_widget_realize(dialog); 32 gtk_widget_size_request(dialog, &req); 34 gtk_util::GetWidgetSizeFromCharacters(dialog, title.length(), 0, 42 gtk_widget_set_size_request(dialog, width, -1); 86 GtkWidget* dialog = gtk_message_dialog_new(parent, GTK_DIALOG_MODAL local 98 GtkWidget* dialog = gtk_message_dialog_new(parent, GTK_DIALOG_MODAL, local [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
DialogTest.java | 3 import android.app.Dialog; 28 final Dialog dialog = new Dialog(null); local 29 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { 32 assertThat((Dialog) dialogInListener, sameInstance(dialog)); 37 dialog.dismiss(); 44 Dialog dialog = new Dialog(Robolectric.application) local 50 TestDialog dialog = new TestDialog(); local 58 Dialog dialog = new Dialog(null); local 67 TestDialog dialog = new TestDialog(); local 74 Dialog dialog = new Dialog(null); local 84 Dialog dialog = new Dialog(Robolectric.application) { local 102 Dialog dialog = new Dialog(Robolectric.application); local 115 Dialog dialog = new Dialog(null); local 124 TestDialog dialog = new TestDialog(); local 154 Dialog dialog = new Dialog(Robolectric.application); local [all...] |
ProgressDialogTest.java | 29 private ProgressDialog dialog; field in class:ProgressDialogTest 34 dialog = new ProgressDialog(null); 35 shadow = Robolectric.shadowOf(dialog); 48 dialog.setMessage(message); 54 assertThat(dialog.isIndeterminate(), equalTo(false)); 56 dialog.setIndeterminate(true); 57 assertThat(dialog.isIndeterminate(), equalTo(true)); 59 dialog.setIndeterminate(false); 60 assertThat(dialog.isIndeterminate(), equalTo(false)); 113 public void onCancel(DialogInterface dialog) { [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
dialogs_gtk.cc | 26 // the dialog, but usually not the height). The image's aspect ratio will always 31 // Implementation of SelectFileDialog that shows a Gtk common dialog for 32 // choosing a file or folder. This acts as a modal dialog. 59 void FileSelected(GtkWidget* dialog, const FilePath& path); 62 void MultiFilesSelected(GtkWidget* dialog, 66 // Dialog is passed so we can find that |params| pointer that was passed to 67 // us when we were told to show the dialog. 68 void FileNotSelected(GtkWidget* dialog); 82 // Removes and returns the |params| associated with |dialog| from 84 void* PopParamsForDialog(GtkWidget* dialog); 217 GtkWidget* dialog = NULL; local 352 GtkWidget* dialog = local 384 GtkWidget* dialog = local 410 GtkWidget* dialog = CreateFileOpenHelper(title_string, default_path, parent); local 423 GtkWidget* dialog = CreateFileOpenHelper(title_string, default_path, parent); local 435 GtkWidget* dialog = local [all...] |
js_modal_dialog_gtk.cc | 21 // after dialog creation. 25 // If there's a text entry in the dialog, get the text from the first one and 27 std::wstring GetPromptText(GtkDialog* dialog) { 29 g_object_get_data(G_OBJECT(dialog), kPromptTextId)); 35 // If there's a toggle button in the dialog, return the toggled state. 37 bool ShouldSuppressJSDialogs(GtkDialog* dialog) { 39 g_object_get_data(G_OBJECT(dialog), kSuppressCheckboxId)); 50 JSModalDialogGtk::JSModalDialogGtk(JavaScriptAppModalDialog* dialog, 52 : dialog_(dialog) { 189 void JSModalDialogGtk::OnResponse(GtkWidget* dialog, int response_id) [all...] |
/external/chromium/chrome/browser/ui/gtk/download/ |
download_in_progress_dialog_gtk.cc | 56 GtkWidget* dialog = gtk_message_dialog_new( local 63 gtk_util::AddButtonToDialog(dialog, 66 gtk_util::AddButtonToDialog(dialog, 70 gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), 74 g_signal_connect(dialog, "response", G_CALLBACK(OnResponseThunk), this); 76 gtk_widget_show_all(dialog); 79 void DownloadInProgressDialogGtk::OnResponse(GtkWidget* dialog, 81 gtk_widget_destroy(dialog);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
IUpdateWizardDialog.java | 27 * Invoked after {@link WizardDialog#create()} to let the caller update the dialog. 29 public void updateWizardDialog(WizardDialogEx dialog);
|
/external/chromium/chrome/browser/ui/cocoa/ |
js_modal_dialog_cocoa.h | 25 explicit JSModalDialogCocoa(JavaScriptAppModalDialog* dialog); 36 JavaScriptAppModalDialog* dialog() const { return dialog_.get(); } function in class:JSModalDialogCocoa
|
/packages/apps/Calendar/src/com/android/calendar/ |
EditResponseHelper.java | 52 * -1 means no choice selected, or the dialog was 66 public void onClick(DialogInterface dialog, int which) { 71 public void onDismiss(DialogInterface dialog) { 73 // that the dialog was canceled. 81 mDismissListener.onDismiss(dialog); 99 public void onClick(DialogInterface dialog, int which) { 113 * Set the dismiss listener to be called when the dialog is ended. There, 114 * use getWhichEvents() to see how the dialog was dismissed; if it returns 115 * -1, the dialog was canceled out. If it is not -1, it's the index of 129 AlertDialog dialog = new AlertDialog.Builder(mParent).setTitle local [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteChooserDialogFragment.java | 19 import android.app.Dialog; 26 * Media route chooser dialog fragment. 29 * this dialog fragment to customize the media route chooser dialog. 38 * Creates a media route chooser dialog fragment. 91 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); local 92 if (dialog != null) { 93 dialog.setRouteSelector(selector); 99 * Called when the chooser dialog is being created. 101 * Subclasses may override this method to customize the dialog 111 MediaRouteChooserDialog dialog = onCreateChooserDialog(getActivity(), savedInstanceState); local [all...] |
/packages/apps/Settings/src/com/android/settings/ |
EditPinPreference.java | 19 import android.app.Dialog; 63 Dialog dialog = getDialog(); local 64 return dialog != null && dialog.isShowing(); 76 Dialog dialog = getDialog(); local 77 if (dialog == null || !dialog.isShowing()) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/dialog/ |
IndeterminateProgressDialog.java | 17 package com.android.contacts.common.dialog; 19 import android.app.Dialog; 28 * Indeterminate progress dialog wrapped up in a DialogFragment to work even when the device 30 * dialog. There is an additional parameter of the minimum amount of time to display the progress 31 * dialog even after a call to dismiss the dialog {@link #dismiss()} or 34 * To create and show the progress dialog, use 38 * To dismiss the dialog, use {@link #dismiss()} or {@link #dismissAllowingStateLoss()} on the 52 private Dialog mOldDialog; 64 * Creates and shows an indeterminate progress dialog. Once the progress dialog is shown, i 90 final ProgressDialog dialog = new ProgressDialog(getActivity()); local [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
Utils.java | 55 // Create (or recycle existing) and show disconnect dialog. 57 AlertDialog dialog, 60 if (dialog == null) { 61 dialog = new AlertDialog.Builder(context) 66 if (dialog.isShowing()) { 67 dialog.dismiss(); 71 dialog.setButton(DialogInterface.BUTTON_POSITIVE, 74 dialog.setTitle(title); 75 dialog.setMessage(message); 76 dialog.show() [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceScreen.java | 19 import android.app.Dialog; 47 * another screen of preferences as a {@link Dialog} or via a 92 private Dialog mDialog; 174 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); local 176 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); 178 dialog.setTitle(title); 180 dialog.setContentView(childPrefScreen); 181 dialog.setOnDismissListener(this) 226 final Dialog dialog = mDialog; local [all...] |
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
FakeBackgroundService.java | 22 import android.app.Dialog; 76 Dialog dialog = new Dialog(this, android.R.style.Theme_Holo_Dialog); local 77 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 78 dialog.getWindow().setFlags( 88 dialog.getWindow().setDimAmount(0); 89 dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 91 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); 97 dialog.getWindow().setAttributes(lp) [all...] |