Lines Matching full:bounds
82 void SetBoundsProperties(const gfx::Rect& bounds,
90 bounds_properties->SetInteger("left", bounds.x());
91 bounds_properties->SetInteger("top", bounds.y());
92 bounds_properties->SetInteger("width", bounds.width());
93 bounds_properties->SetInteger("height", bounds.height());
146 : bounds(kUnspecifiedPosition, kUnspecifiedPosition, 0, 0) {}
151 bounds.SetRect(kUnspecifiedPosition, kUnspecifiedPosition, 0, 0);
174 // Combine into a single window bounds.
175 gfx::Rect combined_bounds(window_spec.bounds);
176 if (content_spec.bounds.x() != BoundsSpecification::kUnspecifiedPosition)
177 combined_bounds.set_x(content_spec.bounds.x() - frame_insets.left());
178 if (content_spec.bounds.y() != BoundsSpecification::kUnspecifiedPosition)
179 combined_bounds.set_y(content_spec.bounds.y() - frame_insets.top());
180 if (content_spec.bounds.width() > 0) {
182 content_spec.bounds.width() + frame_insets.width());
184 if (content_spec.bounds.height() > 0) {
186 content_spec.bounds.height() + frame_insets.height());
189 // Constrain the bounds.
545 gfx::Rect bounds = native_app_window_->GetBounds();
546 bounds.Inset(native_app_window_->GetFrameInsets());
547 return bounds;
678 gfx::Rect bounds = GetClientBounds();
679 gfx::Size constrained_size = constraints.ClampSize(bounds.size());
680 if (bounds.size() != constrained_size) {
681 bounds.set_size(constrained_size);
682 bounds.Inset(-native_app_window_->GetFrameInsets());
683 native_app_window_->SetBounds(bounds);
877 gfx::Rect taskbar_bounds = it->bounds();
1049 gfx::Rect bounds = native_app_window_->GetRestoredBounds();
1051 gfx::Screen::GetNativeScreen()->GetDisplayMatching(bounds).work_area();
1054 extension_id(), window_key_, bounds, screen_bounds, window_state);
1062 gfx::Rect* bounds) const {
1063 *bounds = cached_bounds;
1065 // Reposition and resize the bounds if the cached_screen_bounds is different
1066 // from the current screen bounds and the current screen bounds doesn't
1067 // completely contain the bounds.
1070 bounds->set_width(
1072 std::min(bounds->width(), current_screen_bounds.width())));
1073 bounds->set_height(
1075 std::min(bounds->height(), current_screen_bounds.height())));
1076 bounds->set_x(
1078 std::min(bounds->x(),
1079 current_screen_bounds.right() - bounds->width())));
1080 bounds->set_y(
1082 std::min(bounds->y(),
1083 current_screen_bounds.bottom() - bounds->height())));
1090 if (params.content_spec.bounds.width() == 0 &&
1091 params.window_spec.bounds.width() == 0) {
1092 params.content_spec.bounds.set_width(kDefaultWidth);
1094 if (params.content_spec.bounds.height() == 0 &&
1095 params.window_spec.bounds.height() == 0) {
1096 params.content_spec.bounds.set_height(kDefaultHeight);
1115 // App window has cached screen bounds, make sure it fits on screen in
1126 ¶ms.window_spec.bounds);
1129 // Since we are restoring a cached state, reset the content bounds spec to
1148 region.bounds.x(),
1149 region.bounds.y(),
1150 region.bounds.right(),
1151 region.bounds.bottom(),