Home
last modified time | relevance | path

Searched refs:target_bounds (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium_org/chrome/browser/ui/panels/
Dpanel_drag_controller.cc282 gfx::Rect target_bounds(target_position, dragging_panel_->GetBounds().size()); in GetPanelPositionForMouseLocation() local
287 GetDisplayAreaMatching(target_bounds); in GetPanelPositionForMouseLocation()
289 GetWorkAreaMatching(target_bounds); in GetPanelPositionForMouseLocation()
308 gfx::Rect target_bounds(target_position, dragging_panel_->full_size()); in TryDetach() local
313 GetWorkAreaMatching(target_bounds); in TryDetach()
316 dock_work_area.bottom() - target_bounds.bottom() < in TryDetach()
322 dragging_panel_->SetPanelBoundsInstantly(target_bounds); in TryDetach()
335 gfx::Rect target_bounds(target_position, dragging_panel_->GetBounds().size()); in TryDock() local
341 GetWorkAreaMatching(target_bounds); in TryDock()
344 dock_work_area.bottom() - target_bounds.bottom() > in TryDock()
[all …]
Dpanel_drag_controller.h77 gfx::Rect* target_bounds,
/external/chromium_org/ash/shelf/
Dshelf_layout_manager.cc282 TargetBounds target_bounds; in LayoutShelf() local
283 CalculateTargetBounds(state_, &target_bounds); in LayoutShelf()
284 UpdateBoundsAndOpacity(target_bounds, false, NULL); in LayoutShelf()
294 target_bounds.shelf_bounds_in_shelf); in LayoutShelf()
633 TargetBounds target_bounds; in SetState() local
634 CalculateTargetBounds(state_, &target_bounds); in SetState()
635 UpdateBoundsAndOpacity(target_bounds, true, in SetState()
650 const TargetBounds& target_bounds, in UpdateBoundsAndOpacity() argument
680 GetLayer(shelf_)->SetOpacity(target_bounds.opacity); in UpdateBoundsAndOpacity()
683 target_bounds.shelf_bounds_in_root)); in UpdateBoundsAndOpacity()
[all …]
Dshelf_layout_manager.h269 void UpdateBoundsAndOpacity(const TargetBounds& target_bounds,
284 void CalculateTargetBounds(const State& state, TargetBounds* target_bounds);
288 void UpdateTargetBoundsForGesture(TargetBounds* target_bounds) const;
/external/chromium_org/ash/wm/
Dsystem_modal_container_layout_manager.cc226 gfx::Rect target_bounds = window->bounds(); in AddModalWindow() local
227 target_bounds.AdjustToFit(GetUsableDialogArea()); in AddModalWindow()
228 window->SetBounds(target_bounds); in AddModalWindow()
267 gfx::Rect target_bounds; in GetCenteredAndOrFittedBounds() local
271 target_bounds = usable_area; in GetCenteredAndOrFittedBounds()
272 target_bounds.ClampToCenteredSize(window->bounds().size()); in GetCenteredAndOrFittedBounds()
275 target_bounds = window->bounds(); in GetCenteredAndOrFittedBounds()
276 target_bounds.AdjustToFit(usable_area); in GetCenteredAndOrFittedBounds()
282 target_bounds.set_size(window->bounds().size()); in GetCenteredAndOrFittedBounds()
284 return target_bounds; in GetCenteredAndOrFittedBounds()
Dwindow_animations.cc102 gfx::Rect target_bounds = GetMinimizeAnimationTargetBoundsInScreen(window); in AddLayerAnimationsForMinimize() local
103 target_bounds = in AddLayerAnimationsForMinimize()
104 ScreenUtil::ConvertRectFromScreen(window->parent(), target_bounds); in AddLayerAnimationsForMinimize()
106 float scale_x = static_cast<float>(target_bounds.width()) / bounds.width(); in AddLayerAnimationsForMinimize()
107 float scale_y = static_cast<float>(target_bounds.height()) / bounds.height(); in AddLayerAnimationsForMinimize()
116 gfx::Point(target_bounds.x() - bounds.x(), in AddLayerAnimationsForMinimize()
117 target_bounds.y() - bounds.y()))); in AddLayerAnimationsForMinimize()
Dapp_list_controller.cc336 gfx::Rect target_bounds; in ScheduleAnimation() local
338 target_bounds = widget->GetWindowBoundsInScreen(); in ScheduleAnimation()
339 widget->SetBounds(OffsetTowardsShelf(target_bounds, widget)); in ScheduleAnimation()
341 target_bounds = OffsetTowardsShelf(widget->GetWindowBoundsInScreen(), in ScheduleAnimation()
352 widget->SetBounds(target_bounds); in ScheduleAnimation()
Dlock_layout_manager_unittest.cc241 gfx::Rect target_bounds(screen_bounds); in TEST_F() local
242 target_bounds.set_height(target_bounds.height() - in TEST_F()
244 EXPECT_EQ(target_bounds.ToString(), window->GetBoundsInScreen().ToString()); in TEST_F()
/external/chromium_org/ash/wm/overview/
Dwindow_selector_item.h71 const gfx::Rect& target_bounds,
88 const gfx::Rect& target_bounds() const { return target_bounds_; } in target_bounds() function
102 const gfx::Rect& target_bounds,
123 void UpdateWindowLabels(const gfx::Rect& target_bounds,
Dwindow_selector_item.cc102 const gfx::Rect& target_bounds, in SetBounds() argument
108 target_bounds_ = target_bounds; in SetBounds()
116 activate_window_button_->SetBounds(target_bounds); in SetBounds()
118 UpdateWindowLabels(target_bounds, root_window, animate); in SetBounds()
120 gfx::Rect inset_bounds(target_bounds); in SetBounds()
167 gfx::Rect target_bounds = ToEnclosingRect(align_bounds); in UpdateCloseButtonBounds() local
170 close_button_transform.Translate(target_bounds.right(), target_bounds.y()); in UpdateCloseButtonBounds()
Dwindow_grid.cc221 gfx::Rect target_bounds(window_size.width() * column + x_offset, in PositionWindows() local
225 window_list_[i]->SetBounds(root_window_, target_bounds, animate); in PositionWindows()
411 const gfx::Rect target_bounds = SelectedWindow()->target_bounds(); in InitSelectionWidget() local
413 GetSlideVectorForFadeIn(direction, target_bounds); in InitSelectionWidget()
415 GetDisplayMatching(target_bounds); in InitSelectionWidget()
417 target_bounds - fade_out_direction, dst_display); in InitSelectionWidget()
472 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); in MoveSelectionWidgetToTarget()
476 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); in MoveSelectionWidgetToTarget()
Dwindow_selector_window.cc66 const gfx::Rect& target_bounds, in SetItemBounds() argument
70 ShrinkRectToFitPreservingAspectRatio(src_rect, target_bounds)); in SetItemBounds()
Dwindow_selector_window.h40 const gfx::Rect& target_bounds,
Dwindow_selector_panels.cc183 const gfx::Rect& target_bounds, in SetItemBounds() argument
191 ShrinkRectToFitPreservingAspectRatio(bounding_rect, target_bounds)); in SetItemBounds()
Dwindow_selector_panels.h40 const gfx::Rect& target_bounds,
/external/chromium_org/ui/gfx/animation/
Dtween.cc158 const gfx::Rect& target_bounds) { in RectValueBetween() argument
160 LinearIntValueBetween(value, start_bounds.x(), target_bounds.x()), in RectValueBetween()
161 LinearIntValueBetween(value, start_bounds.y(), target_bounds.y()), in RectValueBetween()
162 LinearIntValueBetween(value, start_bounds.width(), target_bounds.width()), in RectValueBetween()
164 value, start_bounds.height(), target_bounds.height())); in RectValueBetween()
Danimation.cc73 const gfx::Rect& target_bounds) const { in CurrentValueBetween()
75 GetCurrentValue(), start_bounds, target_bounds); in CurrentValueBetween()
Dtween.h57 const gfx::Rect& target_bounds);
Danimation.h48 const gfx::Rect& target_bounds) const;
/external/chromium_org/ui/compositor/
Dlayer_animator_unittest.cc231 gfx::Rect target_bounds(0, 0, 50, 50); in TEST() local
233 animator->SetBounds(target_bounds); in TEST()
239 CheckApproximatelyEqual(delegate.GetBoundsForAnimation(), target_bounds); in TEST()
251 gfx::Rect target_bounds(0, 0, 50, 50); in TEST() local
253 animator->SetBounds(target_bounds); in TEST()
258 CheckApproximatelyEqual(delegate.GetBoundsForAnimation(), target_bounds); in TEST()
274 gfx::Rect target_bounds(0, 0, 50, 50); in TEST() local
276 animator->SetBounds(target_bounds); in TEST()
383 gfx::Rect start_bounds, target_bounds, middle_bounds; in TEST() local
384 start_bounds = target_bounds = middle_bounds = gfx::Rect(0, 0, 50, 50); in TEST()
[all …]
/external/chromium_org/ui/views/animation/
Dbounds_animator_unittest.cc115 gfx::Rect target_bounds(10, 10, 20, 20); in TEST_F() local
116 animator()->AnimateViewTo(child(), target_bounds); in TEST_F()
128 EXPECT_EQ(target_bounds, child()->bounds()); in TEST_F()
132 EXPECT_EQ(gfx::UnionRects(target_bounds, initial_bounds), in TEST_F()
Dbounds_animator.cc63 data.target_bounds = target; in AnimateViewTo()
79 data_[view].target_bounds = target; in SetTargetBounds()
85 return data_[view].target_bounds; in GetTargetBounds()
233 animation->CurrentValueBetween(data.start_bounds, data.target_bounds); in AnimationProgressed()
/external/chromium_org/ui/views/window/
Dcustom_frame_view.cc512 gfx::Rect target_bounds(gfx::Point(next_button_x, caption_y), in LayoutWindowControls() local
515 target_bounds.set_width(target_bounds.width() + extra_width); in LayoutWindowControls()
516 LayoutButton(button, target_bounds); in LayoutWindowControls()
528 gfx::Rect target_bounds(gfx::Point(next_button_x, caption_y), in LayoutWindowControls() local
531 target_bounds.set_width(target_bounds.width() + extra_width); in LayoutWindowControls()
532 target_bounds.Offset(-target_bounds.width(), 0); in LayoutWindowControls()
533 LayoutButton(button, target_bounds); in LayoutWindowControls()
/external/chromium_org/ui/gfx/
Dinterpolated_transform_unittest.cc178 gfx::Rect target_bounds(0, 0, 1920, 1080); in GetMaximize() local
182 target_bounds.height()) / initial_bounds.width(); in GetMaximize()
184 target_bounds.width()) / initial_bounds.height(); in GetMaximize()
193 gfx::Point(target_bounds.x() - initial_bounds.x(), in GetMaximize()
194 target_bounds.y() - initial_bounds.y()))); in GetMaximize()
/external/chromium_org/chrome/browser/extensions/
Ddisplay_info_provider_chromeos.cc350 gfx::Rect target_bounds = target.bounds(); in SetInfo() local
351 target_bounds.Offset(new_bounds_origin.x() - target.bounds().x(), in SetInfo()
354 primary.bounds(), primary.id(), target_bounds, target.id()); in SetInfo()

12