Home
last modified time | relevance | path

Searched refs:focus_manager (Results 1 – 25 of 76) sorted by relevance

1234

/external/chromium_org/ui/views/focus/
Dfocus_manager_unittest.cc219 FocusManager* focus_manager = GetFocusManager(); in TEST_F() local
228 focus_manager->GetCurrentTargetForAccelerator(return_accelerator)); in TEST_F()
230 focus_manager->GetCurrentTargetForAccelerator(escape_accelerator)); in TEST_F()
233 focus_manager->RegisterAccelerator(return_accelerator, in TEST_F()
236 focus_manager->RegisterAccelerator(escape_accelerator, in TEST_F()
242 focus_manager->GetCurrentTargetForAccelerator(return_accelerator)); in TEST_F()
244 focus_manager->GetCurrentTargetForAccelerator(escape_accelerator)); in TEST_F()
247 EXPECT_TRUE(focus_manager->ProcessAccelerator(return_accelerator)); in TEST_F()
252 EXPECT_TRUE(focus_manager->ProcessAccelerator(escape_accelerator)); in TEST_F()
259 focus_manager->RegisterAccelerator(return_accelerator, in TEST_F()
[all …]
Dexternal_focus_tracker.cc14 FocusManager* focus_manager) in ExternalFocusTracker() argument
15 : focus_manager_(focus_manager), in ExternalFocusTracker()
51 void ExternalFocusTracker::SetFocusManager(FocusManager* focus_manager) { in SetFocusManager() argument
54 focus_manager_ = focus_manager; in SetFocusManager()
Daccelerator_handler_win.cc21 FocusManager* focus_manager = widget ? widget->GetFocusManager() : NULL; in Dispatch() local
22 if (focus_manager) { in Dispatch()
27 if (!focus_manager->OnKeyEvent(event)) { in Dispatch()
/external/chromium/chrome/browser/ui/views/tab_contents/
Dnative_tab_contents_container_gtk.cc50 views::FocusManager* focus_manager = GetFocusManager(); in RenderViewHostChanged() local
51 if (focus_manager->GetFocusedView() == this) in RenderViewHostChanged()
65 views::FocusManager* focus_manager = GetFocusManager(); in TabContentsFocused() local
66 if (!focus_manager) { in TabContentsFocused()
70 focus_manager->SetFocusedView(this); in TabContentsFocused()
115 views::FocusManager* focus_manager = GetFocusManager(); in RequestFocus() local
116 if (focus_manager) in RequestFocus()
117 focus_manager->SetFocusedView(NULL); in RequestFocus()
Dtab_contents_view_touch.cc185 views::FocusManager* focus_manager = in StoreFocus() local
187 if (focus_manager) { in StoreFocus()
190 views::View* focused_view = focus_manager->GetFocusedView(); in StoreFocus()
203 views::FocusManager* focus_manager = in RestoreFocus() local
207 DCHECK(focus_manager != NULL) << "No focus manager when restoring focus."; in RestoreFocus()
209 if (last_focused_view->IsFocusableInRootView() && focus_manager && in RestoreFocus()
210 focus_manager->ContainsView(last_focused_view)) { in RestoreFocus()
251 views::FocusManager* focus_manager = in TakeFocus() local
256 if (focus_manager) in TakeFocus()
257 focus_manager->AdvanceFocus(reverse); in TakeFocus()
Dtab_contents_view_views.cc172 views::FocusManager* focus_manager = in StoreFocus() local
174 if (focus_manager) { in StoreFocus()
177 views::View* focused_view = focus_manager->GetFocusedView(); in StoreFocus()
191 views::FocusManager* focus_manager = in RestoreFocus() local
195 DCHECK(focus_manager != NULL) << "No focus manager when restoring focus."; in RestoreFocus()
197 if (last_focused_view->IsFocusableInRootView() && focus_manager && in RestoreFocus()
198 focus_manager->ContainsView(last_focused_view)) { in RestoreFocus()
240 views::FocusManager* focus_manager = in TakeFocus() local
245 if (focus_manager) in TakeFocus()
246 focus_manager->AdvanceFocus(reverse); in TakeFocus()
Dtab_contents_view_gtk.cc301 views::FocusManager* focus_manager = in StoreFocus() local
303 if (focus_manager) { in StoreFocus()
306 views::View* focused_view = focus_manager->GetFocusedView(); in StoreFocus()
319 views::FocusManager* focus_manager = in RestoreFocus() local
323 DCHECK(focus_manager != NULL) << "No focus manager when restoring focus."; in RestoreFocus()
325 if (last_focused_view->IsFocusableInRootView() && focus_manager && in RestoreFocus()
326 focus_manager->ContainsView(last_focused_view)) { in RestoreFocus()
358 views::FocusManager* focus_manager = in TakeFocus() local
363 if (focus_manager) in TakeFocus()
364 focus_manager->AdvanceFocus(reverse); in TakeFocus()
Dnative_tab_contents_container_win.cc77 views::FocusManager* focus_manager = GetFocusManager(); in TabContentsFocused() local
78 if (!focus_manager) { in TabContentsFocused()
82 focus_manager->SetFocusedView(this); in TabContentsFocused()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dtoolbar_view_browsertest.cc37 views::FocusManager* focus_manager = widget->GetFocusManager(); in RunToolbarCycleFocusTest() local
43 views::View* first_view = focus_manager->GetFocusedView(); in RunToolbarCycleFocusTest()
53 focus_manager->AdvanceFocus(false); in RunToolbarCycleFocusTest()
54 view = focus_manager->GetFocusedView(); in RunToolbarCycleFocusTest()
75 focus_manager->AdvanceFocus(true); in RunToolbarCycleFocusTest()
76 view = focus_manager->GetFocusedView(); in RunToolbarCycleFocusTest()
/external/chromium_org/chrome/browser/ui/views/
Dfind_bar_controller_interactive_uitest.cc42 views::FocusManager* focus_manager = widget->GetFocusManager(); in IN_PROC_BROWSER_TEST_F() local
47 focus_manager->GetCurrentTargetForAccelerator(escape); in IN_PROC_BROWSER_TEST_F()
54 focus_manager->GetCurrentTargetForAccelerator(escape); in IN_PROC_BROWSER_TEST_F()
66 focus_manager->GetCurrentTargetForAccelerator(escape)); in IN_PROC_BROWSER_TEST_F()
73 focus_manager->GetCurrentTargetForAccelerator(escape)); in IN_PROC_BROWSER_TEST_F()
Dconstrained_window_views_browsertest.cc163 views::FocusManager* focus_manager = window1->GetFocusManager(); in IN_PROC_BROWSER_TEST_F() local
164 ASSERT_TRUE(focus_manager); in IN_PROC_BROWSER_TEST_F()
168 focus_manager->GetFocusedView()); in IN_PROC_BROWSER_TEST_F()
179 ASSERT_EQ(focus_manager, window2->GetFocusManager()); in IN_PROC_BROWSER_TEST_F()
183 focus_manager->GetFocusedView()); in IN_PROC_BROWSER_TEST_F()
188 EXPECT_TRUE(focus_manager->ProcessAccelerator( in IN_PROC_BROWSER_TEST_F()
198 focus_manager->GetFocusedView()); in IN_PROC_BROWSER_TEST_F()
208 focus_manager->GetFocusedView()); in IN_PROC_BROWSER_TEST_F()
215 focus_manager->GetFocusedView()); in IN_PROC_BROWSER_TEST_F()
218 EXPECT_TRUE(focus_manager->ProcessAccelerator( in IN_PROC_BROWSER_TEST_F()
Dkeyboard_access_browsertest.cc43 ViewFocusChangeWaiter(views::FocusManager* focus_manager, in ViewFocusChangeWaiter() argument
45 : focus_manager_(focus_manager), in ViewFocusChangeWaiter()
151 const views::FocusManager* focus_manager = widget->GetFocusManager(); in GetFocusedViewID() local
152 const views::View* focused_view = focus_manager->GetFocusedView(); in GetFocusedViewID()
161 views::FocusManager* focus_manager = widget->GetFocusManager(); in WaitForFocusedViewIDToChange() local
162 ViewFocusChangeWaiter waiter(focus_manager, original_view_id); in WaitForFocusedViewIDToChange()
/external/chromium_org/ui/views/controls/webview/
Dwebview.cc102 FocusManager* focus_manager = GetFocusManager(); in OnWebContentsFocused() local
103 if (focus_manager) in OnWebContentsFocused()
104 focus_manager->SetFocusedView(this); in OnWebContentsFocused()
205 FocusManager* const focus_manager = GetFocusManager(); in RenderViewHostChanged() local
206 if (focus_manager && focus_manager->GetFocusedView() == this) in RenderViewHostChanged()
247 FocusManager* const focus_manager = GetFocusManager(); in AttachWebContents() local
248 if (focus_manager && focus_manager->GetFocusedView() == this) in AttachWebContents()
Dunhandled_keyboard_event_handler_linux.cc22 FocusManager* focus_manager) { in HandleKeyboardEvent() argument
23 if (!focus_manager) { in HandleKeyboardEvent()
50 if (focus_manager->ProcessAccelerator(accelerator)) { in HandleKeyboardEvent()
60 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event)); in HandleKeyboardEvent()
Dunhandled_keyboard_event_handler_win.cc22 FocusManager* focus_manager) { in HandleKeyboardEvent() argument
23 if (!focus_manager) { in HandleKeyboardEvent()
49 if (focus_manager->ProcessAccelerator(accelerator)) { in HandleKeyboardEvent()
/external/chromium/chrome/browser/automation/
Dtesting_automation_provider_views.cc26 ViewFocusChangeWaiter(views::FocusManager* focus_manager, in ViewFocusChangeWaiter() argument
30 : focus_manager_(focus_manager), in ViewFocusChangeWaiter()
148 views::FocusManager* focus_manager = in GetFocusedViewID() local
150 DCHECK(focus_manager); in GetFocusedViewID()
151 views::View* focused_view = focus_manager->GetFocusedView(); in GetFocusedViewID()
162 views::FocusManager* focus_manager = in WaitForFocusedViewIDToChange() local
166 new ViewFocusChangeWaiter(focus_manager, in WaitForFocusedViewIDToChange()
/external/chromium/chrome/browser/chromeos/login/
Dwizard_controller_browsertest.cc271 views::FocusManager* focus_manager = NULL; in IN_PROC_BROWSER_TEST_F() local
280 focus_manager = controller()->contents()->GetFocusManager(); in IN_PROC_BROWSER_TEST_F()
284 focus_manager->ProcessAccelerator(accel_enterprise_enrollment_screen)); in IN_PROC_BROWSER_TEST_F()
288 focus_manager = controller()->contents()->GetFocusManager(); in IN_PROC_BROWSER_TEST_F()
291 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_account_screen)); in IN_PROC_BROWSER_TEST_F()
294 focus_manager = controller()->contents()->GetFocusManager(); in IN_PROC_BROWSER_TEST_F()
297 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_network_screen)); in IN_PROC_BROWSER_TEST_F()
300 focus_manager = controller()->contents()->GetFocusManager(); in IN_PROC_BROWSER_TEST_F()
303 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_update_screen)); in IN_PROC_BROWSER_TEST_F()
306 focus_manager = controller()->contents()->GetFocusManager(); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/test/base/
Dinteractive_test_utils_views.cc24 const views::FocusManager* focus_manager = widget->GetFocusManager(); in IsViewFocused() local
25 DCHECK(focus_manager); in IsViewFocused()
26 DCHECK(focus_manager->GetFocusedView()); in IsViewFocused()
27 return focus_manager->GetFocusedView()->id() == vid; in IsViewFocused()
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_view_interactive_uitest.cc50 FocusManager* focus_manager = browser_view->GetFocusManager(); in IN_PROC_BROWSER_TEST_F() local
53 EXPECT_TRUE(location_bar_view->Contains(focus_manager->GetFocusedView())); in IN_PROC_BROWSER_TEST_F()
59 EXPECT_FALSE(location_bar_view->Contains(focus_manager->GetFocusedView())); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/ui/views/
Dunhandled_keyboard_event_handler.cc19 views::FocusManager* focus_manager) { in HandleKeyboardEvent() argument
20 if (!focus_manager) { in HandleKeyboardEvent()
51 if (focus_manager->ProcessAccelerator(accelerator)) { in HandleKeyboardEvent()
Daccessibility_event_router_views_unittest.cc170 views::FocusManager* focus_manager = contents->GetWidget()->GetFocusManager(); in TEST_F() local
172 focus_manager->AdvanceFocus(false); in TEST_F()
177 focus_manager->AdvanceFocus(false); in TEST_F()
182 focus_manager->AdvanceFocus(false); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/login/
Dsession_login_browsertest.cc49 views::FocusManager* focus_manager = browser->window()-> in IN_PROC_BROWSER_TEST_F() local
52 EXPECT_TRUE(focus_manager != NULL); in IN_PROC_BROWSER_TEST_F()
54 const views::View* focused_view = focus_manager->GetFocusedView(); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/ui/views/controls/native/
Dnative_view_host.cc216 FocusManager* focus_manager = GetFocusManager(); in ClearFocus() local
217 if (!focus_manager || !focus_manager->GetFocusedView()) in ClearFocus()
223 focus_manager->ViewRemoved((*i)->GetRootView()); in ClearFocus()
224 if (!focus_manager->GetFocusedView()) in ClearFocus()
/external/chromium_org/ash/
Dfocus_cycler.cc90 views::FocusManager* focus_manager = widget->GetFocusManager(); in RotateFocus() local
91 focus_manager->ClearFocus(); in RotateFocus()
92 focus_manager->RotatePaneFocus( in RotateFocus()
Dfocus_cycler_unittest.cc342 views::FocusManager* focus_manager = browser_widget->GetFocusManager(); in TEST_F() local
355 EXPECT_EQ(focus_manager->GetFocusedView(), view1); in TEST_F()
360 EXPECT_EQ(focus_manager->GetFocusedView(), view3); in TEST_F()
369 EXPECT_EQ(focus_manager->GetFocusedView(), view3); in TEST_F()
374 EXPECT_EQ(focus_manager->GetFocusedView(), view1); in TEST_F()
390 EXPECT_EQ(focus_manager->GetFocusedView(), view1); in TEST_F()
398 EXPECT_EQ(focus_manager->GetFocusedView(), view1); in TEST_F()

1234