Lines Matching full:focus
30 #include "views/focus/focus_manager.h"
76 const char kSimplePage[] = "files/focus/page_with_focus.html";
77 const char kStealFocusPage[] = "files/focus/page_steals_focus.html";
78 const char kTypicalPage[] = "files/focus/typical_page.html";
147 file_path = file_path.AppendASCII("focus");
214 // The focus should be on the Tab contents.
216 // Now hide the window, show it again, the focus should not have changed.
223 // Hide the window, show it again, the focus should not have changed.
248 // Switch to the 1st browser window, focus should still be on the location
254 // Switch back to the second browser, focus should still be on the page.
267 // Tabs remember focus.
281 // Alternate focus for the tab.
295 browser()->GetTabContentsAt(j)->view()->Focus();
312 // Try the above, but with ctrl+tab. Since tab normally changes focus,
336 // Tabs remember focus with find-in-page box.
350 // Focus the location bar.
356 // Focus should be on the recently opened tab page.
359 // Select 1st tab, focus should still be on the location-bar.
364 // Now open the find box again, switch to another tab and come back, the focus
374 // Background window does not steal focus.
390 // On X11, calling Activate() is not guaranteed to move focus, so we have
391 // to figure out which browser does have focus.
399 FAIL() << "Could not determine which browser has focus";
405 // On Mac, the newly created window always gets the focus.
424 // Page cannot steal focus when focus is on location bar.
429 // Open the page that steals focus.
443 // Focus traversal on a regular page.
445 // focus has changed in the page. The notification in the renderer may change
466 // Test forward focus traversal.
472 // Move the caret to the end, otherwise the next Tab key may not move focus.
476 // Now let's press tab to move the focus.
479 // Let's make sure the focus is on the expected element in the page.
502 // On the last tab key press, the focus returns to the browser.
511 // focus (as the end of the focus loop was reached in the renderer).
516 // Now let's try reverse focus traversal.
522 // Move the caret to the end, otherwise the next Tab key may not move focus.
526 // Now let's press shift-tab to move the focus in reverse.
545 // On the last tab key press, the focus returns to the browser.
552 // Let's make sure the focus is on the expected element in the page.
563 // focus (as the end of the focus loop was reached in the renderer).
569 // Focus traversal while an interstitial is showing.
578 // Focus should be on the page.
601 // Test forward focus traversal.
606 // Move the caret to the end, otherwise the next Tab key may not move focus.
610 // Now let's press tab to move the focus.
612 // Let's make sure the focus is on the expected element in the page.
628 // On the last tab key press, the focus returns to the browser.
639 // focus (as the end of the focus loop was reached in the renderer).
644 // Now let's try reverse focus traversal.
649 // Move the caret to the end, otherwise the next Tab key may not move focus.
653 // Now let's press shift-tab to move the focus in reverse.
663 // On the last tab key press, the focus returns to the browser.
672 // Let's make sure the focus is on the expected element in the page.
682 // focus (as the end of the focus loop was reached in the renderer).
688 // Focus stays on page with interstitials.
697 // Page should have focus.
713 // The interstitial should have focus now.
720 // Focus should be back on the original page.
724 // Make sure Find box can request focus, even when it is already open.
729 // Open some page (any page that doesn't steal focus).
736 // Press Cmd+F, which will make the Find box open and request focus.
740 // Press Ctrl+F, which will make the Find box open and request focus.
759 // Now press Ctrl+F again and focus should move to the Find box.
769 // Set focus to the page.
773 // Now press Ctrl+F again and focus should move to the Find box.
789 // Makes sure the focus is in the right location when opening the different
795 // Open the history tab, focus should be on the tab contents.
801 // Open the new tab, focus should be on the location bar.
807 // Open the download tab, focus should be on the tab contents.
813 // Open about:blank, focus should be on the location bar.
821 // Tests that focus goes where expected when using reload.
832 // Focus should stay on the location bar.
835 // Open a regular page, focus the location bar, reload.
842 // Focus should now be on the tab contents.
847 // Tests that focus goes where expected when using reload on a crashed tab.
858 // Focus should now be on the tab contents.