Home
last modified time | relevance | path

Searched refs:new_bounds (Results 1 – 25 of 158) sorted by relevance

1234567

/external/chromium_org/ash/wm/
Dwindow_resizer.cc136 gfx::Rect new_bounds(origin, size); in CalculateBoundsForDrag() local
155 new_bounds.right() < work_area.x() + kMinimumOnScreenArea) { in CalculateBoundsForDrag()
156 int delta = work_area.x() + kMinimumOnScreenArea - new_bounds.right(); in CalculateBoundsForDrag()
157 new_bounds.set_width(new_bounds.width() + delta); in CalculateBoundsForDrag()
158 } else if (new_bounds.x() > work_area.right() - kMinimumOnScreenArea) { in CalculateBoundsForDrag()
159 int width = new_bounds.right() - work_area.right() + in CalculateBoundsForDrag()
161 new_bounds.set_x(work_area.right() - kMinimumOnScreenArea); in CalculateBoundsForDrag()
162 new_bounds.set_width(width); in CalculateBoundsForDrag()
167 new_bounds.y() > work_area.bottom() - kMinimumOnScreenArea) { in CalculateBoundsForDrag()
168 int height = new_bounds.bottom() - work_area.bottom() + in CalculateBoundsForDrag()
[all …]
Dwindow_animations.cc71 const gfx::Rect& new_bounds) { in GetCrossFadeDuration() argument
76 int new_area = new_bounds.width() * new_bounds.height(); in GetCrossFadeDuration()
330 const gfx::Rect new_bounds(window->bounds()); in CrossFadeAnimation() local
331 const bool old_on_top = (old_bounds.width() > new_bounds.width()); in CrossFadeAnimation()
335 old_bounds, new_bounds); in CrossFadeAnimation()
348 float scale_x = static_cast<float>(new_bounds.width()) / in CrossFadeAnimation()
350 float scale_y = static_cast<float>(new_bounds.height()) / in CrossFadeAnimation()
352 out_transform.Translate(new_bounds.x() - old_bounds.x(), in CrossFadeAnimation()
353 new_bounds.y() - old_bounds.y()); in CrossFadeAnimation()
369 static_cast<float>(new_bounds.width()); in CrossFadeAnimation()
[all …]
Dlock_layout_manager.cc101 const gfx::Rect& new_bounds) { in OnWindowBoundsChanged() argument
122 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { in OnKeyboardBoundsChanging() argument
123 keyboard_bounds_ = new_bounds; in OnKeyboardBoundsChanging()
/external/chromium_org/cc/resources/
Dpicture_layer_tiling_set_unittest.cc162 void SyncTilings(const gfx::Size& new_bounds, in SyncTilings() argument
171 *source_.get(), new_bounds, invalidation, minimum_scale); in SyncTilings()
173 void SyncTilings(const gfx::Size& new_bounds) { in SyncTilings() argument
175 SyncTilings(new_bounds, invalidation, 0.f); in SyncTilings()
177 void SyncTilings(const gfx::Size& new_bounds, const Region& invalidation) { in SyncTilings() argument
178 SyncTilings(new_bounds, invalidation, 0.f); in SyncTilings()
180 void SyncTilings(const gfx::Size& new_bounds, float minimum_scale) { in SyncTilings() argument
182 SyncTilings(new_bounds, invalidation, minimum_scale); in SyncTilings()
185 void VerifyTargetEqualsSource(const gfx::Size& new_bounds) const { in VerifyTargetEqualsSource()
186 ASSERT_FALSE(new_bounds.IsEmpty()); in VerifyTargetEqualsSource()
[all …]
/external/chromium_org/chrome/browser/ui/panels/
Ddocked_panel_drag_handler.cc24 gfx::Rect new_bounds(panel->GetBounds()); in HandleDrag() local
25 new_bounds.set_x(target_position.x()); in HandleDrag()
26 int delta_x = new_bounds.x() - panel->GetBounds().x(); in HandleDrag()
29 if (new_bounds.bottom() != bottom) { in HandleDrag()
30 new_bounds.set_y(target_position.y()); in HandleDrag()
31 if (new_bounds.bottom() > bottom) in HandleDrag()
32 new_bounds.set_y(bottom - new_bounds.height()); in HandleDrag()
34 panel->SetPanelBoundsInstantly(new_bounds); in HandleDrag()
Ddetached_panel_drag_handler.cc18 gfx::Rect new_bounds(panel->GetBounds()); in HandleDrag() local
19 new_bounds.set_origin(target_position); in HandleDrag()
20 panel->SetPanelBoundsInstantly(new_bounds); in HandleDrag()
Ddetached_panel_collection.cc206 gfx::Rect new_bounds(saved_panel_placement_.panel->GetBounds()); in RestorePanelToSavedPlacement() local
207 new_bounds.set_origin(saved_panel_placement_.position); in RestorePanelToSavedPlacement()
208 saved_panel_placement_.panel->SetPanelBounds(new_bounds); in RestorePanelToSavedPlacement()
224 Panel* panel, const gfx::Rect& new_bounds) { in OnPanelResizedByMouse() argument
226 panel->set_full_size(new_bounds.size()); in OnPanelResizedByMouse()
Ddocked_panel_collection.cc241 const gfx::Rect& new_bounds) { in OnPanelResizedByMouse() argument
243 panel->set_full_size(new_bounds.size()); in OnPanelResizedByMouse()
664 gfx::Rect new_bounds = old_bounds; in RefreshLayout() local
665 AdjustPanelBoundsPerExpansionState(panel, &new_bounds); in RefreshLayout()
667 new_bounds.set_width( in RefreshLayout()
671 int x = rightmost_position - new_bounds.width(); in RefreshLayout()
672 new_bounds.set_x(x); in RefreshLayout()
675 (x == old_bounds.x() && new_bounds.width() <= old_bounds.width())) in RefreshLayout()
676 moving_left.push(std::make_pair(panel, new_bounds)); in RefreshLayout()
678 moving_right.push_back(std::make_pair(panel, new_bounds)); in RefreshLayout()
/external/chromium_org/content/public/test/
Dcontent_browser_test_utils_mac.mm15 NSRect new_bounds = NSRectFromCGRect(bounds.ToCGRect());
17 new_bounds.origin.y =
19 new_bounds.origin.y - new_bounds.size.height;
22 [window setFrame:new_bounds display:NO];
/external/chromium_org/apps/
Dapp_window_geometry_cache_unittest.cc151 gfx::Rect new_bounds; in TEST_F() local
155 extension_id, kWindowId, &new_bounds, &new_screen_bounds, &new_state)); in TEST_F()
156 ASSERT_EQ(bounds, new_bounds); in TEST_F()
169 gfx::Rect new_bounds; in TEST_F() local
173 extension_id, kWindowId, &new_bounds, &new_screen_bounds, &new_state)); in TEST_F()
174 ASSERT_TRUE(new_bounds.IsEmpty()); in TEST_F()
187 gfx::Rect new_bounds; in TEST_F() local
191 extension_id, kWindowId, &new_bounds, &new_screen_bounds, &new_state)); in TEST_F()
192 ASSERT_TRUE(new_bounds.IsEmpty()); in TEST_F()
205 gfx::Rect new_bounds; in TEST_F() local
[all …]
/external/chromium_org/ui/message_center/views/
Dtoast_contents_view.cc124 void ToastContentsView::SetBoundsInstantly(gfx::Rect new_bounds) { in SetBoundsInstantly() argument
125 if (new_bounds == bounds()) in SetBoundsInstantly()
128 origin_ = new_bounds.origin(); in SetBoundsInstantly()
131 GetWidget()->SetBounds(new_bounds); in SetBoundsInstantly()
134 void ToastContentsView::SetBoundsWithAnimation(gfx::Rect new_bounds) { in SetBoundsWithAnimation() argument
135 if (new_bounds == bounds()) in SetBoundsWithAnimation()
138 origin_ = new_bounds.origin(); in SetBoundsWithAnimation()
147 animated_bounds_end_ = new_bounds; in SetBoundsWithAnimation()
/external/chromium_org/mojo/aura/
Dwindow_tree_host_mojo.cc170 const gfx::Rect& new_bounds, in OnNodeBoundsChange() argument
172 bounds_ = new_bounds; in OnNodeBoundsChange()
173 if (old_bounds.origin() != new_bounds.origin()) in OnNodeBoundsChange()
175 if (old_bounds.size() != new_bounds.size()) in OnNodeBoundsChange()
/external/chromium_org/chrome/browser/chromeos/login/lock/
Dwebui_screen_locker.cc386 const gfx::Rect& new_bounds) { in OnKeyboardBoundsChanging() argument
387 if (new_bounds.IsEmpty() && !keyboard_bounds_.IsEmpty()) { in OnKeyboardBoundsChanging()
392 GetOobeUI()->GetCoreOobeActor()->SetKeyboardState(false, new_bounds); in OnKeyboardBoundsChanging()
394 } else if (!new_bounds.IsEmpty() && keyboard_bounds_.IsEmpty()) { in OnKeyboardBoundsChanging()
399 GetOobeUI()->GetCoreOobeActor()->SetKeyboardState(true, new_bounds); in OnKeyboardBoundsChanging()
403 keyboard_bounds_ = new_bounds; in OnKeyboardBoundsChanging()
/external/chromium_org/chrome/browser/ui/views/panels/
Dpanel_view.cc368 void PanelView::SetBoundsInternal(const gfx::Rect& new_bounds, bool animate) { in SetBoundsInternal() argument
369 if (bounds_ == new_bounds) in SetBoundsInternal()
372 bounds_ = new_bounds; in SetBoundsInternal()
385 this, panel_.get(), animation_start_bounds_, new_bounds)); in SetBoundsInternal()
410 gfx::Rect new_bounds = bounds_animator_->CurrentValueBetween( in AnimationProgressed() local
412 SetWidgetBounds(new_bounds); in AnimationProgressed()
415 void PanelView::SetWidgetBounds(const gfx::Rect& new_bounds) { in SetWidgetBounds() argument
439 new_bounds.height() <= kMinimumOverlappedWindowHeight) { in SetWidgetBounds()
448 new_bounds.height() > kMinimumOverlappedWindowHeight) { in SetWidgetBounds()
458 GetWidget()->SetBounds(new_bounds); in SetWidgetBounds()
[all …]
/external/chromium_org/ui/aura/test/
Dtest_screen.cc58 gfx::Rect new_bounds = gfx::ToNearestRect( in SetUIScale() local
60 display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds); in SetUIScale()
99 Window* window, const gfx::Rect& old_bounds, const gfx::Rect& new_bounds) { in OnWindowBoundsChanged() argument
102 gfx::ScaleSize(new_bounds.size(), display_.device_scale_factor()))); in OnWindowBoundsChanged()
/external/chromium_org/ash/host/
Dtransformer_helper.cc42 gfx::RectF new_bounds(ui::ConvertRectToDIP(root_window_->layer(), bounds)); in GetRootWindowBounds() local
43 transform_.TransformRect(&new_bounds); in GetRootWindowBounds()
44 return gfx::Rect(gfx::ToFlooredSize(new_bounds.size())); in GetRootWindowBounds()
/external/chromium_org/chrome/browser/ui/ash/
Dshelf_browsertest.cc26 const gfx::Rect new_bounds( in IN_PROC_BROWSER_TEST_F() local
31 browser()->window()->SetBounds(new_bounds); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/mojo/services/public/cpp/view_manager/lib/
Dnode_private.h49 const gfx::Rect& new_bounds) { in LocalSetBounds() argument
50 node_->LocalSetBounds(old_bounds, new_bounds); in LocalSetBounds()
/external/chromium_org/ui/views/controls/menu/
Ddisplay_change_listener_aura.cc25 const gfx::Rect& new_bounds) OVERRIDE;
51 const gfx::Rect& new_bounds) { in OnWindowBoundsChanged() argument
/external/chromium_org/ui/views/controls/
Dsingle_split_view.cc223 const gfx::Rect& new_bounds) const { in CalculateDividerOffset()
229 previous_bounds.height() == 0 || new_bounds.height() == 0; in CalculateDividerOffset()
232 divider_offset += new_bounds.width() - previous_bounds.width(); in CalculateDividerOffset()
234 divider_offset += new_bounds.height() - previous_bounds.height(); in CalculateDividerOffset()
/external/chromium_org/ui/keyboard/
Dkeyboard_controller.cc89 const gfx::Rect& new_bounds) OVERRIDE { in OnBoundsChanged() argument
90 bounds_ = new_bounds; in OnBoundsChanged()
243 const gfx::Rect& new_bounds) { in NotifyKeyboardBoundsChanging() argument
244 current_keyboard_bounds_ = new_bounds; in NotifyKeyboardBoundsChanging()
248 OnKeyboardBoundsChanging(new_bounds)); in NotifyKeyboardBoundsChanging()
268 new_bounds); in NotifyKeyboardBoundsChanging()
/external/chromium_org/chrome/browser/ui/cocoa/panels/
Dpanel_stack_window_cocoa.mm155 Panel* panel, const gfx::Rect& new_bounds) {
159 if (panel->GetBounds() == new_bounds)
168 new_bounds);
210 gfx::Rect new_bounds = iter->first->GetBounds();
213 if (old_bounds.width() != new_bounds.width() ||
214 old_bounds.height() != new_bounds.height()) {
221 delta = new_bounds.origin() - old_bounds.origin();
222 } else if (!(delta == new_bounds.origin() - old_bounds.origin())) {
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab_drag_controller.cc357 gfx::Rect new_bounds(CalculateDraggedBrowserBounds(source_tabstrip_, in Drag() local
360 new_bounds.Offset(-widget->GetRestoredBounds().x() + in Drag()
365 widget->SetBounds(new_bounds); in Drag()
514 const gfx::Rect& new_bounds) { in OnWidgetBoundsChanged() argument
516 "new_bounds", new_bounds.ToString()); in OnWidgetBoundsChanged()
1799 gfx::Rect new_bounds(source->GetWidget()->GetRestoredBounds()); in CalculateDraggedBrowserBounds() local
1806 new_bounds.set_width( in CalculateDraggedBrowserBounds()
1807 std::max(max_size.width() / 2, new_bounds.width())); in CalculateDraggedBrowserBounds()
1808 new_bounds.set_height( in CalculateDraggedBrowserBounds()
1809 std::max(max_size.height() / 2, new_bounds.height())); in CalculateDraggedBrowserBounds()
[all …]
Dtab_strip.cc1675 gfx::Rect new_bounds(ideal_bounds(i)); in StackDraggedTabs() local
1676 new_bounds.set_x(std::max(min_x, new_bounds.x() - adjusted_delta)); in StackDraggedTabs()
1677 tabs_.set_ideal_bounds(i, new_bounds); in StackDraggedTabs()
1684 gfx::Rect new_bounds(ideal_bounds(i)); in StackDraggedTabs() local
1685 int new_x = std::max(new_bounds.x() + delta, max_x); in StackDraggedTabs()
1687 new_bounds.width() != active_width) in StackDraggedTabs()
1688 new_x += (active_width - new_bounds.width()); in StackDraggedTabs()
1689 new_bounds.set_x(new_x); in StackDraggedTabs()
1690 tabs_.set_ideal_bounds(i, new_bounds); in StackDraggedTabs()
1709 gfx::Rect new_bounds(ideal_bounds(i)); in StackDraggedTabs() local
[all …]
/external/chromium_org/ui/views/animation/
Dbounds_animator.cc232 gfx::Rect new_bounds = in AnimationProgressed() local
234 if (new_bounds != view->bounds()) { in AnimationProgressed()
235 gfx::Rect total_bounds = gfx::UnionRects(new_bounds, view->bounds()); in AnimationProgressed()
241 view->SetBoundsRect(new_bounds); in AnimationProgressed()

1234567