Lines Matching defs:Viewport
54 void CheckScrollBounds(View* viewport, View* view) {
58 int x = CheckScrollBounds(viewport->width(), view->width(), -view->x());
59 int y = CheckScrollBounds(viewport->height(), view->height(), -view->y());
81 // Viewport contains the contents View of the ScrollView.
82 class ScrollView::Viewport : public View {
84 Viewport() {}
85 virtual ~Viewport() {}
88 return "ScrollView::Viewport";
108 DISALLOW_COPY_AND_ASSIGN(Viewport);
113 contents_viewport_(new Viewport()),
115 header_viewport_(new Viewport()),
223 // viewport.
432 // and height into account. This will be "clipped" by the viewport.
440 // either viewport or the content size.
451 // and scaling it back by the size of the viewport.