Searched refs:work_area_ (Results 1 – 10 of 10) sorted by relevance
40 return work_area_.x() + kMarginBetweenItems; in GetToastOriginX()41 return work_area_.right() - kMarginBetweenItems - toast_bounds.width(); in GetToastOriginX()46 ? work_area_.y() + kMarginBetweenItems in GetBaseLine()47 : work_area_.bottom() - kMarginBetweenItems; in GetBaseLine()51 return work_area_.bottom(); in GetWorkAreaBottom()64 if (work_area_ == display.work_area()) in RecomputeAlignment()67 work_area_ = display.work_area(); in RecomputeAlignment()72 alignment_ = work_area_.y() > display.bounds().y() ? POPUP_ALIGNMENT_TOP in RecomputeAlignment()81 alignment_ |= (work_area_.x() > display.bounds().x() && in RecomputeAlignment()82 work_area_.y() == display.bounds().y()) in RecomputeAlignment()
59 gfx::Rect work_area_; variable
81 return alignment_delegate_->work_area_; in GetWorkArea()
54 work_area_ = display.work_area(); in StartObserving()90 return work_area_.x() + kToastMarginX; in GetToastOriginX()93 return work_area_.x() + kToastMarginX; in GetToastOriginX()94 return work_area_.right() - kToastMarginX - toast_bounds.width(); in GetToastOriginX()99 ? work_area_.y() + kNoToastMarginBorderAndShadowOffset + in GetBaseLine()101 : work_area_.bottom() - kNoToastMarginBorderAndShadowOffset - in GetBaseLine()106 return work_area_.bottom() - system_tray_height_; in GetWorkAreaBottom()138 work_area_ = Shell::GetScreen()->GetDisplayNearestWindow( in OnDisplayWorkAreaInsetsChanged()144 work_area_ = Shell::GetScreen()->GetDisplayNearestWindow( in OnAutoHideStateChanged()153 work_area_.Inset(shelf_->SelectValueForShelfAlignment( in OnAutoHideStateChanged()
83 gfx::Rect work_area_; variable
65 return alignment_delegate_->work_area_; in GetWorkArea()
75 work_area_(bounds), in Display()124 return gfx::Insets(work_area_.y() - bounds_.y(), in GetWorkAreaInsets()125 work_area_.x() - bounds_.x(), in GetWorkAreaInsets()126 bounds_.bottom() - work_area_.bottom(), in GetWorkAreaInsets()127 bounds_.right() - work_area_.right()); in GetWorkAreaInsets()133 Insets insets = bounds_.InsetsFrom(work_area_); in SetScaleAndBounds()162 work_area_ = bounds_; in UpdateWorkAreaFromInsets()163 work_area_.Inset(insets); in UpdateWorkAreaFromInsets()175 work_area_.ToString().c_str(), in ToString()
64 const Rect& work_area() const { return work_area_; } in work_area()65 void set_work_area(const Rect& work_area) { work_area_ = work_area; } in set_work_area()85 const Size& work_area_size() const { return work_area_.size(); } in work_area_size()125 Rect work_area_; variable
65 work_area_ = in OnDisplayChanged()67 work_area_.set_x(work_area_.x() + kPanelCollectionLeftMargin); in OnDisplayChanged()68 work_area_.set_width(work_area_.width() - in OnDisplayChanged()76 (*iter)->LimitSizeToWorkArea(work_area_); in OnDisplayChanged()121 panels_.back()->GetBounds().x() < work_area_.x()) { in GetDefaultPositionForPanel()126 if ((*iter)->GetBounds().x() >= work_area_.x()) { in GetDefaultPositionForPanel()132 DCHECK(x > work_area_.x()); in GetDefaultPositionForPanel()135 work_area_.x()); in GetDefaultPositionForPanel()137 return gfx::Point(x, work_area_.bottom() - full_size.height()); in GetDefaultPositionForPanel()141 return work_area_.right(); in StartingRightPosition()[all …]
104 gfx::Rect work_area() const { return work_area_; } in work_area()172 gfx::Rect work_area_; variable