Lines Matching refs:contents_
106 : contents_(NULL),
147 SetHeaderOrContents(contents_viewport_, a_view, &contents_);
155 if (!contents_)
157 return gfx::Rect(-contents_->x(), -contents_->y(),
256 // Give |contents_| a chance to update its bounds if it depends on the
258 if (contents_)
259 contents_->Layout();
264 if (contents_) {
265 gfx::Size content_size = contents_->size();
314 if (should_layout_contents && contents_)
315 contents_->Layout();
323 CheckScrollBounds(contents_viewport_, contents_);
391 if (!contents_)
395 position = AdjustPosition(contents_->x(), position, contents_->width(),
397 if (-contents_->x() == position)
399 contents_->SetX(-position);
405 position = AdjustPosition(contents_->y(), position, contents_->height(),
407 if (-contents_->y() == position)
409 contents_->SetY(-position);
411 contents_->SchedulePaintInRect(contents_->GetVisibleBounds());
418 if (contents_) {
420 amount = contents_->GetPageScrollIncrement(
423 amount = contents_->GetLineScrollIncrement(
452 if (!contents_ || (!horiz_sb_->visible() && !vert_sb_->visible()))
457 std::max(contents_viewport_->width(), contents_->width());
459 std::max(contents_viewport_->height(), contents_->height());
479 // Shift contents_'s X and Y so that the region is visible. If we
492 contents_->SetX(-new_x);
495 contents_->SetY(-new_y);
540 if (!contents_)
545 int cw = contents_->width();
546 int origin = contents_->x();
551 int ch = contents_->height();
552 int origin = contents_->y();