Home
last modified time | relevance | path

Searched refs:GetBounds (Results 1 – 25 of 111) sorted by relevance

12345

/external/chromium_org/chrome/browser/ui/panels/
Ddocked_panel_browsertest.cc46 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
47 EXPECT_EQ(panel2->GetBounds().width(), panel2->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
48 EXPECT_EQ(panel3->GetBounds().width(), panel3->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
61 EXPECT_EQ(panel7->GetBounds().width(), panel7->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
62 EXPECT_GT(panel7->GetBounds().x(), docked_collection->work_area().x()); in IN_PROC_BROWSER_TEST_F()
65 EXPECT_LT(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
66 EXPECT_LT(panel2->GetBounds().width(), panel2->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
67 EXPECT_LT(panel3->GetBounds().width(), panel3->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
68 EXPECT_LT(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
69 EXPECT_LT(panel5->GetBounds().width(), panel5->GetRestoredBounds().width()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dpanel_drag_browsertest.cc42 gfx::Point mouse_location(panel->GetBounds().origin()); in DragPanelByDelta()
53 gfx::Point mouse_location(panel->GetBounds().origin()); in DragPanelToMouseLocation()
54 panel_testing->PressLeftMouseButtonTitlebar(panel->GetBounds().origin()); in DragPanelToMouseLocation()
96 panel->GetBounds().bottom(); in GetDragDeltaToRemainDetached()
106 panel->GetBounds().bottom(); in GetDragDeltaToAttach()
117 gfx::Rect bounds1 = panel1->GetBounds(); in GetDragDeltaToStackToBottom()
118 gfx::Rect bounds2 = panel2->GetBounds(); in GetDragDeltaToStackToBottom()
129 gfx::Rect bounds1 = panel1->GetBounds(); in GetDragDeltaToUnstackFromBottom()
130 gfx::Rect bounds2 = panel2->GetBounds(); in GetDragDeltaToUnstackFromBottom()
137 gfx::Rect bounds1 = panel1->GetBounds(); in GetDragDeltaToStackToTop()
[all …]
Dpanel_resize_browsertest.cc36 gfx::Rect bounds = panel->GetBounds(); in ResizePanel()
88 gfx::Rect bounds = panel->GetBounds(); in IN_PROC_BROWSER_TEST_F()
98 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
101 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
111 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
114 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
124 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
127 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
137 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
142 EXPECT_EQ(bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
[all …]
Ddocked_panel_drag_handler.cc24 gfx::Rect new_bounds(panel->GetBounds()); in HandleDrag()
26 int delta_x = new_bounds.x() - panel->GetBounds().x(); in HandleDrag()
56 int dragging_panel_left_boundary = panel->GetBounds().x(); in DragLeft()
71 if (dragging_panel_left_boundary > current_panel->GetBounds().x() + in DragLeft()
72 current_panel->GetBounds().width() / 2) in DragLeft()
90 int dragging_panel_right_boundary = panel->GetBounds().x() + in DragRight()
91 panel->GetBounds().width() - 1; in DragRight()
105 if (dragging_panel_right_boundary < current_panel->GetBounds().x() + in DragRight()
106 current_panel->GetBounds().width() / 2) in DragRight()
Dpanel_browsertest.cc62 << ", x=" << panels[i]->GetBounds().x() in PrintAllPanelBounds()
63 << ", y=" << panels[i]->GetBounds().y() in PrintAllPanelBounds()
64 << ", width=" << panels[i]->GetBounds().width() in PrintAllPanelBounds()
65 << ", height" << panels[i]->GetBounds().height(); in PrintAllPanelBounds()
73 bounds.push_back(panels[i]->GetBounds()); in GetAllPanelBounds()
144 panels[index]->GetBounds().origin()); in TestMinimizeRestore()
188 gfx::Point hover_point(panels[index]->GetBounds().origin()); in TestMinimizeRestore()
195 panels[index]->GetBounds().y() - kFarEnoughFromHoverArea); in TestMinimizeRestore()
202 hover_point.set_y(panels[index]->GetBounds().y() + in TestMinimizeRestore()
203 panels[index]->GetBounds().height() + 5); in TestMinimizeRestore()
[all …]
Dstacked_panel_browsertest.cc66 EXPECT_EQ(panel1_expected_bounds, panel1->GetBounds()); in IN_PROC_BROWSER_TEST_F()
71 EXPECT_EQ(panel2_expected_bounds, panel2->GetBounds()); in IN_PROC_BROWSER_TEST_F()
76 EXPECT_EQ(panel3_expected_bounds, panel3->GetBounds()); in IN_PROC_BROWSER_TEST_F()
169 EXPECT_EQ(panel1_expected_bounds, panel1->GetBounds()); in IN_PROC_BROWSER_TEST_F()
174 EXPECT_EQ(panel2_expected_bounds, panel2->GetBounds()); in IN_PROC_BROWSER_TEST_F()
179 EXPECT_EQ(panel3_expected_bounds, panel3->GetBounds()); in IN_PROC_BROWSER_TEST_F()
227 gfx::Point panel1_origin = panel2->GetBounds().origin(); in IN_PROC_BROWSER_TEST_F()
228 gfx::Point panel2_origin = panel2->GetBounds().origin(); in IN_PROC_BROWSER_TEST_F()
234 EXPECT_EQ(panel1_expected_bounds, panel1->GetBounds()); in IN_PROC_BROWSER_TEST_F()
239 EXPECT_EQ(panel2_expected_bounds, panel2->GetBounds()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dstacked_panel_collection.cc49 gfx::Rect top_bounds = top_panel()->GetBounds(); in OnDisplayChanged()
60 int total_height = bottom_panel()->GetBounds().bottom() - top_bounds.y(); in OnDisplayChanged()
74 gfx::Rect top_bounds = top_panel()->GetBounds(); in RefreshLayout()
87 gfx::Rect bounds = panel->GetBounds(); in RefreshLayoutWithTopPanelStartingAt()
113 gfx::Rect bounds = panel->GetBounds(); in RefreshLayoutWithTopPanelStartingAt()
174 gfx::Rect enclosing_bounds = top_panel()->GetBounds(); in GetEnclosingBounds()
176 bottom_panel()->GetBounds().bottom() - enclosing_bounds.y()); in GetEnclosingBounds()
199 current_panel->GetBounds().height() - panel::kTitlebarHeight; in MinimizePanelsForSpace()
218 int needed_space = panel->GetBounds().height(); in AddPanel()
243 top_panel()->GetBounds().x() == bottom_panel()->GetBounds().x() && in AddPanel()
[all …]
Ddetached_panel_browsertest.cc32 EXPECT_EQ(bounds.x(), panel->GetBounds().x()); in IN_PROC_BROWSER_TEST_F()
36 EXPECT_EQ(bounds.y(), panel->GetBounds().y()); in IN_PROC_BROWSER_TEST_F()
37 EXPECT_EQ(bounds.width(), panel->GetBounds().width()); in IN_PROC_BROWSER_TEST_F()
38 EXPECT_EQ(bounds.height(), panel->GetBounds().height()); in IN_PROC_BROWSER_TEST_F()
129 test_panel->PressLeftMouseButtonTitlebar(panel->GetBounds().origin()); in IN_PROC_BROWSER_TEST_F()
134 test_panel->PressLeftMouseButtonTitlebar(panel->GetBounds().origin(), in IN_PROC_BROWSER_TEST_F()
142 test_panel->PressLeftMouseButtonTitlebar(panel->GetBounds().origin()); in IN_PROC_BROWSER_TEST_F()
157 EXPECT_EQ(initial_bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
166 gfx::Rect bounds = panel->GetBounds(); in IN_PROC_BROWSER_TEST_F()
193 EXPECT_EQ(initial_bounds, panel->GetBounds()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dpanel_drag_controller.cc145 mouse_location - panel->GetBounds().origin(); in StartDragging()
282 gfx::Rect target_bounds(target_position, dragging_panel_->GetBounds().size()); in GetPanelPositionForMouseLocation()
335 gfx::Rect target_bounds(target_position, dragging_panel_->GetBounds().size()); in TryDock()
373 target_bounds.origin() - dragging_panel_->GetBounds().origin(); in TryStack()
435 gfx::Vector2d delta = target_position - dragging_panel_->GetBounds().origin(); in TryUnstackFromTop()
439 gfx::Rect target_bounds = last_panel_to_unstack->GetBounds(); in TryUnstackFromTop()
441 gfx::Rect below_panel_bounds = panel_below_last_panel_to_unstack->GetBounds(); in TryUnstackFromTop()
530 gfx::Rect target_bounds(target_position, dragging_panel_->GetBounds().size()); in TryUnstackFromBottom()
535 gfx::Rect above_panel_bounds = above_panel->GetBounds(); in TryUnstackFromBottom()
543 gfx::Vector2d delta = target_position - dragging_panel_->GetBounds().origin(); in TryUnstackFromBottom()
[all …]
Ddetached_panel_collection.cc42 display_settings_provider->GetWorkAreaMatching(panel->GetBounds()); in OnDisplayChanged()
49 gfx::Rect bounds = panel->GetBounds(); in OnDisplayChanged()
91 if (panel->GetBounds().origin() == default_panel_origin_) in AddPanel()
136 gfx::Rect bounds = panel->GetBounds(); in ResizePanelWindow()
142 if (bounds != panel->GetBounds()) in ResizePanelWindow()
200 saved_panel_placement_.position = panel->GetBounds().origin(); in SavePanelPlacement()
206 gfx::Rect new_bounds(saved_panel_placement_.panel->GetBounds()); in RestorePanelToSavedPlacement()
252 gfx::Rect bounds = panel->GetBounds(); in OnPanelExpansionStateChanged()
Dstacked_panel_drag_handler.cc38 gfx::Vector2d delta_origin = target_position - panel->GetBounds().origin(); in HandleDrag()
79 first_non_dragging_panel->GetBounds().x() - panel->GetBounds().x(), in FinalizeDrag()
Ddocked_panel_collection.cc101 int x = panel->GetBounds().x(); in AddPanel()
104 if (x > (*iter)->GetBounds().x()) in AddPanel()
121 panels_.back()->GetBounds().x() < work_area_.x()) { in GetDefaultPositionForPanel()
126 if ((*iter)->GetBounds().x() >= work_area_.x()) { in GetDefaultPositionForPanel()
127 x = (*iter)->GetBounds().x(); in GetDefaultPositionForPanel()
146 (panels_.back()->GetBounds().x() - kPanelsHorizontalSpacing); in GetRightMostAvailablePosition()
247 gfx::Rect panel_bounds = panel->GetBounds(); in OnPanelExpansionStateChanged()
311 gfx::Rect bounds = panel->GetBounds(); in OnPanelAttentionStateChanged()
496 gfx::Rect bounds = panel->GetBounds(); in ShouldBringUpTitlebars()
663 gfx::Rect old_bounds = panel->GetBounds(); in RefreshLayout()
[all …]
Dpanel_resize_controller.cc88 bounds_at_start_ = panel->GetBounds(); in StartResizing()
101 gfx::Rect bounds = resizing_panel_->GetBounds(); in Resize()
146 if (bounds != resizing_panel_->GetBounds()) { in Resize()
Dpanel_manager.cc55 gfx::Rect bounds1 = panel1->GetBounds(); in ComparePanelsByPosition()
56 gfx::Rect bounds2 = panel2->GetBounds(); in ComparePanelsByPosition()
376 display_settings_provider_->GetWorkAreaMatching(panel->GetBounds()); in GetCollectionForNewPanel()
378 work_area.bottom() - panel->GetBounds().y() - in GetCollectionForNewPanel()
379 (panel->IsActive() ? panel->GetBounds().height() in GetCollectionForNewPanel()
Ddetached_panel_drag_handler.cc18 gfx::Rect new_bounds(panel->GetBounds()); in HandleDrag()
Dtest_panel_collection_squeeze_observer.cc24 return panel->GetBounds().width() < panel->GetRestoredBounds().width(); in IsSqueezed()
/external/chromium_org/ash/display/
Dscreen_position_controller_unittest.cc93 root_windows[0]->GetHost()->GetBounds().origin().ToString()); in TEST_F()
95 root_windows[0]->GetHost()->GetBounds().size().ToString()); in TEST_F()
97 root_windows[1]->GetHost()->GetBounds().origin().ToString()); in TEST_F()
99 root_windows[1]->GetHost()->GetBounds().size().ToString()); in TEST_F()
182 GetBounds().origin().ToString()); in TEST_F()
185 GetBounds().size().ToString()); in TEST_F()
188 GetBounds().origin().ToString()); in TEST_F()
191 GetBounds().size().ToString()); in TEST_F()
Ddisplay_manager_unittest.cc598 GetBounds().size().ToString()); in TEST_F()
1106 EXPECT_EQ("400x500", test_api.GetHost()->GetBounds().size().ToString()); in TEST_F()
1219 EXPECT_EQ("1,1", host0->GetBounds().origin().ToString()); in TEST_F()
1220 EXPECT_EQ("100x200", host0->GetBounds().size().ToString()); in TEST_F()
1222 EXPECT_NE("1,1", host1->GetBounds().origin().ToString()); in TEST_F()
1223 EXPECT_EQ("300x400", host1->GetBounds().size().ToString()); in TEST_F()
1227 EXPECT_EQ("0,0", host0->GetBounds().origin().ToString()); in TEST_F()
1228 EXPECT_EQ("100x200", host0->GetBounds().size().ToString()); in TEST_F()
1229 EXPECT_EQ("200,300", host1->GetBounds().origin().ToString()); in TEST_F()
1230 EXPECT_EQ("300x400", host1->GetBounds().size().ToString()); in TEST_F()
[all …]
Dmirror_window_controller.cc158 if (mirror_window_host_size_ == host->GetBounds().size()) in OnHostResized()
160 mirror_window_host_size_ = host->GetBounds().size(); in OnHostResized()
/external/chromium_org/chrome/browser/ui/cocoa/panels/
Dpanel_stack_window_cocoa.mm138 gfx::Rect bounds = panel->GetBounds();
159 if (panel->GetBounds() == new_bounds)
163 bounds_updates_[panel] = panel->GetBounds();
183 cocoa_utils::ConvertRectToCocoaCoordinates(panel->GetBounds());
210 gfx::Rect new_bounds = iter->first->GetBounds();
243 cocoa_utils::ConvertRectToCocoaCoordinates(panel->GetBounds());
256 gfx::Rect target_bounds = (*iter)->GetBounds();
306 gfx::Rect snapshot_bounds = gfx::Rect(panel->GetBounds().size());
360 enclosing_bounds = UnionRects(enclosing_bounds, panel->GetBounds());
Dpanel_cocoa_unittest.mm125 gfx::Rect bounds = panel->GetBounds();
144 gfx::Rect bounds1 = panel1->GetBounds();
145 gfx::Rect bounds2 = panel2->GetBounds();
146 gfx::Rect bounds3 = panel3->GetBounds();
157 bounds3 = panel3->GetBounds();
162 EXPECT_EQ(bounds1, panel3->GetBounds());
245 gfx::Rect bounds = panel->GetBounds();
/external/chromium_org/chrome/browser/ui/views/panels/
Dpanel_stack_view.cc200 AddPanelBoundsForBatchUpdate(panel, panel->GetBounds() + delta); in MovePanelsBy()
220 if (panel->GetBounds() == new_bounds) in AddPanelBoundsForBatchUpdate()
224 bounds_updates_[panel] = panel->GetBounds(); in AddPanelBoundsForBatchUpdate()
396 gfx::Rect target_bounds = panel->GetBounds(); in UpdatePanelsBounds()
423 enclosing_bounds = UnionRects(enclosing_bounds, panel->GetBounds()); in UpdatePanelsBounds()
443 enclosing_bounds = UnionRects(enclosing_bounds, panel->GetBounds()); in GetStackWindowBounds()
552 new_stack_bounds.origin() - panels_.front()->GetBounds().origin()); in FilterMessage()
/external/chromium_org/ui/aura/
Dwindow_tree_host.cc65 UpdateRootWindowSize(GetBounds().size()); in InitHost()
72 GetBounds().size()); in InitCompositor()
98 UpdateRootWindowSize(GetBounds().size()); in SetRootTransform()
235 gfx::Size layer_size = GetBounds().size(); in OnHostResized()
/external/chromium_org/ui/views/bubble/
Dbubble_border_unittest.cc212 gfx::Rect visible_tip_1 = b1.GetBounds(anchor, contents); in TEST_F()
218 gfx::Rect invisible_tip_1 = b1.GetBounds(anchor, contents); in TEST_F()
228 gfx::Rect visible_tip_2 = b2.GetBounds(anchor, contents); in TEST_F()
234 gfx::Rect invisible_tip_2 = b2.GetBounds(anchor, contents); in TEST_F()
Dbubble_frame_view.cc279 return bubble_border_->GetBounds(anchor_rect, size); in GetUpdatedWindowBounds()
295 gfx::Rect window_bounds(bubble_border_->GetBounds(anchor_rect, client_size)); in MirrorArrowIfOffScreen()
303 bubble_border_->GetBounds(anchor_rect, client_size); in MirrorArrowIfOffScreen()
322 gfx::Rect window_bounds(bubble_border_->GetBounds(anchor_rect, client_size)); in OffsetArrowIfOffScreen()

12345