Home
last modified time | relevance | path

Searched refs:widget2 (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/ui/views/widget/
Dwidget_interactive_uitest.cc223 Widget widget2; in TEST_F() local
228 init_params2.native_widget = new DesktopNativeWidgetAura(&widget2); in TEST_F()
229 widget2.Init(init_params2); in TEST_F()
230 widget2.SetContentsView(contents_view2); in TEST_F()
231 widget2.Show(); in TEST_F()
232 aura::Window* root_window2 = widget2.GetNativeView()->GetRootWindow(); in TEST_F()
240 EXPECT_EQ(activation_client2->GetActiveWindow(), widget2.GetNativeView()); in TEST_F()
494 Widget* widget2 = CreateTopLevelPlatformWidget(); in TEST_F() local
499 widget2->GetContentsView()->AddChildView(view2a); in TEST_F()
500 widget2->GetContentsView()->AddChildView(view2b); in TEST_F()
[all …]
Dwidget_unittest.cc2159 Widget widget2; in TEST_F() local
2161 params.native_widget = new PlatformDesktopNativeWidget(&widget2); in TEST_F()
2163 widget2.Init(params); in TEST_F()
2164 widget2.Show(); in TEST_F()
2166 EXPECT_EQ(GetWidgetShowState(&widget2), ui::SHOW_STATE_INACTIVE); in TEST_F()
2170 widget2.CloseNow(); in TEST_F()
/external/chromium_org/ui/views/corewm/
Ddesktop_capture_controller_unittest.cc140 scoped_ptr<Widget> widget2(new Widget()); in TEST_F() local
145 widget2->Init(params); in TEST_F()
148 static_cast<internal::RootView*>(widget2->GetRootView()); in TEST_F()
152 widget2->GetNativeView()->GetRootWindow(), in TEST_F()
159 widget2->Show(); in TEST_F()
162 EXPECT_FALSE(widget2->GetNativeView()->HasCapture()); in TEST_F()
168 EXPECT_FALSE(widget2->GetNativeView()->HasCapture()); in TEST_F()
184 widget2->GetNativeView()->SetCapture(); in TEST_F()
187 EXPECT_TRUE(widget2->GetNativeView()->HasCapture()); in TEST_F()
188 EXPECT_EQ(capture_client->GetCaptureWindow(), widget2->GetNativeView()); in TEST_F()
[all …]
Dtooltip_controller_unittest.cc510 scoped_ptr<views::Widget> widget2(CreateWidget(root_window())); in TEST_F() local
511 widget2->SetContentsView(new View); in TEST_F()
513 widget2->GetContentsView()->AddChildView(view2); in TEST_F()
515 widget2->SetBounds(gfx::Rect(0, 0, 200, 200)); in TEST_F()
516 view2->SetBoundsRect(widget2->GetContentsView()->GetLocalBounds()); in TEST_F()
520 widget2->Show(); in TEST_F()
521 EXPECT_GE(IndexInParent(widget2->GetNativeWindow()), in TEST_F()
540 widget2->SetNativeWindowProperty(TooltipManager::kGroupingPropertyKey, in TEST_F()
547 widget2.reset(); in TEST_F()
/external/chromium_org/ash/wm/
Dwindow_positioner_unittest.cc89 views::Widget* widget2 = in TEST_F() local
93 bounds = widget2->GetWindowBoundsInScreen(); in TEST_F()
94 EXPECT_TRUE(widget2->IsMaximized()); in TEST_F()
97 widget2->Restore(); in TEST_F()
99 bounds = widget2->GetWindowBoundsInScreen(); in TEST_F()
/external/chromium_org/ui/views/widget/desktop_aura/
Ddesktop_screen_position_client_unittest.cc37 Widget widget2; in TEST_F() local
45 widget2.set_frame_type(Widget::FRAME_TYPE_FORCE_CUSTOM); in TEST_F()
64 widget2.Init(params2); in TEST_F()
68 params3.parent = widget2.GetNativeView(); in TEST_F()
Ddesktop_window_tree_host_x11_unittest.cc289 scoped_ptr<Widget> widget2(CreateWidget(NULL)); in TEST_F() local
290 widget2->Show(); in TEST_F()
291 widget2->SetShape(shape2.CreateNativeRegion()); in TEST_F()
294 XID xid2 = widget2->GetNativeWindow()->GetHost()->GetAcceleratedWidget(); in TEST_F()
303 widget2->SetBounds(gfx::Rect(100, 100, 200, 200)); in TEST_F()
/external/chromium_org/ash/tooltips/
Dtooltip_controller_unittest.cc143 scoped_ptr<views::Widget> widget2(CreateNewWidgetWithBoundsOn( in TEST_F() local
146 AddViewToWidgetAndResize(widget2.get(), view2); in TEST_F()
148 EXPECT_EQ(widget2->GetNativeView()->GetRootWindow(), root_windows[1]); in TEST_F()
152 generator.MoveMouseRelativeTo(widget2->GetNativeView(), in TEST_F()
166 EXPECT_EQ(widget2->GetNativeView()->GetRootWindow(), root_windows[0]); in TEST_F()
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_view_focus_uitest.cc70 const views::Widget* widget2 = in IN_PROC_BROWSER_TEST_F() local
72 ASSERT_TRUE(widget2); in IN_PROC_BROWSER_TEST_F()
73 const views::FocusManager* focus_manager2 = widget2->GetFocusManager(); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/ash/drag_drop/
Ddrag_drop_controller_unittest.cc515 scoped_ptr<views::Widget> widget2(CreateNewWidget()); in TEST_F() local
517 AddViewToWidgetAndResize(widget2.get(), drag_view2); in TEST_F()
519 gfx::Rect widget2_bounds = widget2->GetClientAreaBoundsInScreen(); in TEST_F()
520 widget2->SetBounds(gfx::Rect(widget1_bounds.width(), 0, in TEST_F()
869 scoped_ptr<views::Widget> widget2(CreateNewWidget()); in TEST_F() local
871 AddViewToWidgetAndResize(widget2.get(), drag_view2); in TEST_F()
873 gfx::Rect widget2_bounds = widget2->GetClientAreaBoundsInScreen(); in TEST_F()
874 widget2->SetBounds(gfx::Rect(widget1_bounds.width(), 0, in TEST_F()
/external/chromium_org/chrome/browser/chromeos/input_method/
Dmode_indicator_browsertest.cc228 const views::Widget* widget2 = observer.widget_list()[0]; in IN_PROC_BROWSER_TEST_F() local
229 EXPECT_NE(widget1, widget2); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/ui/views/focus/
Dfocus_manager_unittest.cc139 scoped_ptr<Widget> widget2(new Widget); in TEST_F() local
140 widget2->Init(params); in TEST_F()
141 widget2->Show(); in TEST_F()
151 gfx::NativeView native_view2 = widget2->GetNativeView(); in TEST_F()
/external/chromium_org/ash/wm/overview/
Dwindow_selector_unittest.cc958 scoped_ptr<views::Widget> widget2(CreatePanelWindowWidget( in TEST_F() local
961 aura::Window* window2 = widget2->GetNativeWindow(); in TEST_F()
991 EXPECT_FALSE(widget2->IsClosed()); in TEST_F()
993 EXPECT_TRUE(widget2->IsClosed()); in TEST_F()
/external/chromium_org/ash/
Dextended_desktop_unittest.cc715 views::Widget* widget2 = CreateTestWidget( in TEST_F() local
717 widget2->Show(); in TEST_F()
718 EXPECT_EQ(root_windows[1], widget2->GetNativeView()->GetRootWindow()); in TEST_F()