Lines Matching refs:tile
427 // A tile is what is shown for a single tab in tabpose mode. It consists of a
434 // animation. |tile| is the rectangle that's covering the whole tab area when
436 NSRect GetStartRectRelativeTo(const Tile& tile) const;
439 NSRect GetFaviconStartRectRelativeTo(const Tile& tile) const;
454 NSRect GetTitleStartRectRelativeTo(const Tile& tile) const;
485 NSRect Tile::GetStartRectRelativeTo(const Tile& tile) const {
487 rect.origin.x -= tile.start_thumb_rect_.origin.x;
488 rect.origin.y -= tile.start_thumb_rect_.origin.y;
492 NSRect Tile::GetFaviconStartRectRelativeTo(const Tile& tile) const {
493 NSRect thumb_start = GetStartRectRelativeTo(tile);
511 NSRect Tile::GetTitleStartRectRelativeTo(const Tile& tile) const {
512 NSRect thumb_start = GetStartRectRelativeTo(tile);
580 // tile rectangles in the index interval [from_index, to_index], so this does
703 // Compute inter-tile padding in the zoomed-out view.
857 scoped_ptr<Tile> tile(tiles_[from_index]);
859 tiles_.insert(tiles_.begin() + to_index, tile.release());
1013 const tabpose::Tile& tile = tileSet_->tile_at(newIndex);
1015 NSRectToCGRect(NSInsetRect(tile.thumb_rect(),
1022 - (void)addLayersForTile:(tabpose::Tile&)tile
1027 initWithTabContents:tile.tab_contents()
1028 fullSize:tile.GetStartRectRelativeTo(
1040 tile.GetStartRectRelativeTo(tileSet_->selected_tile()),
1041 tile.thumb_rect(),
1045 layer.get().frame = NSRectToCGRect(tile.thumb_rect());
1078 NSFont* font = [NSFont systemFontOfSize:tile.title_font_size()];
1079 tile.set_font_metrics([font ascender], -[font descender]);
1082 base::mac::CopyNSImageToCGImage(tile.favicon()));
1088 tile.GetFaviconStartRectRelativeTo(tileSet_->selected_tile()),
1089 tile.favicon_rect(),
1094 faviconLayer.frame = NSRectToCGRect(tile.favicon_rect());
1110 tile.GetTitleStartRectRelativeTo(tileSet_->selected_tile());
1111 NSRect toRect = tile.title_rect();
1130 titleLayer.frame = NSRectToCGRect(tile.title_rect());
1132 titleLayer.string = base::SysUTF16ToNSString(tile.title());
1395 const tabpose::Tile& tile = tileSet_->tile_at(index);
1408 tile.GetStartRectRelativeTo(tileSet_->selected_tile()));
1418 tile.GetFaviconStartRectRelativeTo(tileSet_->selected_tile()));
1426 NSRect titleRect = tile.title_rect();
1428 tile.GetTitleStartRectRelativeTo(tileSet_->selected_tile());
1514 const tabpose::Tile& tile = tileSet_->tile_at(i);
1523 NSInsetRect(tile.thumb_rect(),
1531 tile.thumb_rect().size)) {
1541 tile.thumb_rect(),
1549 tile.favicon_rect(),
1557 tile.title_rect(),
1651 // Move tile from |from| to |to|.
1694 tabpose::Tile& tile = tileSet_->tile_at(index);
1695 if (contents == tile.tab_contents()) {
1702 tile.set_tab_contents(contents);