Home | History | Annotate | Download | only in themes

Lines Matching defs:images

65 // Persistent constants for the main images that we need. These have the same
333 // Mapping used in CreateFrameImages() to associate frame images with the
373 // This should be true for images which can be used to decorate the border to
378 // The images which should be cropped before being saved to the data pack. The
399 // A list of images that don't need tinting or any other modification and can
648 // Builds the images. (Image building is dependent on tints).
685 // Generate raw images (for new-tab-page attribution and background) for
1249 // Some images need to go directly into |image_memory_|. No modification is
1306 void BrowserThemePack::CreateImages(ImageCache* images) const {
1307 CropImages(images);
1308 CreateFrameImages(images);
1309 CreateTintedButtons(GetTintInternal(ThemeProperties::TINT_BUTTONS), images);
1310 CreateTabBackgroundImages(images);
1313 void BrowserThemePack::CropImages(ImageCache* images) const {
1320 ImageCache::iterator it = images->find(prs_id);
1321 if (it == images->end())
1326 (*images)[prs_id] = gfx::Image(gfx::ImageSkiaOperations::ExtractSubset(
1331 void BrowserThemePack::CreateFrameImages(ImageCache* images) const {
1334 // Create all the output images in a separate cache and move them back into
1335 // the input images because there can be name collisions.
1343 // thing and just use the default images.
1348 prs_base_id = images->count(PRS_THEME_FRAME_INCOGNITO_DESKTOP) ?
1353 !images->count(PRS_THEME_FRAME_INCOGNITO_DESKTOP)) {
1359 prs_base_id = images->count(PRS_THEME_FRAME_INCOGNITO) ?
1366 !images->count(PRS_THEME_FRAME_INCOGNITO)) {
1372 if (images->count(prs_id)) {
1373 frame = (*images)[prs_id];
1374 } else if (prs_base_id != prs_id && images->count(prs_base_id)) {
1375 frame = (*images)[prs_base_id];
1378 if (images->count(PRS_THEME_FRAME_DESKTOP)) {
1380 if (images->count(PRS_THEME_FRAME)) {
1403 MergeImageCaches(temp_output, images);
1428 void BrowserThemePack::CreateTabBackgroundImages(ImageCache* images) const {
1434 // We only need to generate the background tab images if we were provided
1436 ImageCache::const_iterator it = images->find(prs_base_id);
1437 if (it != images->end()) {
1441 int vertical_offset = images->count(prs_id)
1445 ImageCache::const_iterator overlay_it = images->find(prs_id);
1446 if (overlay_it != images->end())
1456 MergeImageCaches(temp_output, images);
1459 void BrowserThemePack::RepackImages(const ImageCache& images,
1461 for (ImageCache::const_iterator it = images.begin();
1462 it != images.end(); ++it) {
1495 void BrowserThemePack::AddRawImagesTo(const RawImages& images,
1497 for (RawImages::const_iterator it = images.begin(); it != images.end();
1559 // images provided for scale factors supported by the current system.