Home | History | Annotate | Download | only in window

Lines Matching defs:dialog

82   // Prevent the dialog from closing, for repeated ok and cancel button clicks.
106 TestDialog* dialog() const { return dialog_; }
117 DialogClientView* client_view = dialog()->GetDialogClientView();
122 EXPECT_EQ(ui::DIALOG_BUTTON_OK, dialog()->GetDefaultDialogButton());
123 dialog()->PressEnterAndCheckStates(ok_button);
125 // Focus another button in the dialog, it should become the default.
126 LabelButton* button_1 = new LabelButton(dialog(), string16());
130 dialog()->PressEnterAndCheckStates(button_1);
137 dialog()->PressEnterAndCheckStates(ok_button);
139 // Focus yet another button in the dialog, it should become the default.
140 LabelButton* button_2 = new LabelButton(dialog(), string16());
145 dialog()->PressEnterAndCheckStates(button_2);
151 dialog()->PressEnterAndCheckStates(ok_button);
154 ButtonDropDown* drop_down = new ButtonDropDown(dialog(), NULL);
155 dialog()->AddChildView(drop_down);
163 dialog()->CheckAndResetStates(false, false, drop_down);
166 dialog()->PressEnterAndCheckStates(ok_button);
172 dialog()->PressEnterAndCheckStates(cancel_button);
176 DialogClientView* client_view = dialog()->GetDialogClientView();
182 dialog()->GetFocusManager()->OnKeyEvent(return_key);
183 dialog()->CheckAndResetStates(false, true, NULL);
185 dialog()->GetFocusManager()->OnKeyEvent(escape_key);
186 dialog()->CheckAndResetStates(true, false, NULL);
190 dialog()->CheckAndResetStates(false, true, NULL);
192 dialog()->CheckAndResetStates(true, false, NULL);
196 dialog()->GetFocusManager()->OnKeyEvent(return_key);
197 dialog()->CheckAndResetStates(true, false, NULL);
201 // Removing buttons from the dialog here should not cause a crash on close.
202 delete dialog()->GetDialogClientView()->ok_button();
203 delete dialog()->GetDialogClientView()->cancel_button();
211 const NonClientView* view = dialog()->GetWidget()->non_client_view();
244 dialog()->GetWidget()->GetWindowBoundsInScreen().height());
246 // Giving the default test dialog a title will make the bounds the same.
247 dialog()->set_title(ASCIIToUTF16("Title"));
248 dialog()->GetWidget()->UpdateWindowTitle();
249 View* frame = dialog()->GetWidget()->non_client_view()->frame_view();