Searched defs:thumbnail (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium/chrome/browser/history/
H A Dhistory_publisher.cc14 const std::vector<unsigned char>& thumbnail, const GURL& url,
22 &thumbnail,
13 PublishPageThumbnail( const std::vector<unsigned char>& thumbnail, const GURL& url, const base::Time& time) const argument
H A Dhistory_publisher.h37 void PublishPageThumbnail(const std::vector<unsigned char>& thumbnail,
52 const std::vector<unsigned char>* thumbnail; member in struct:history::HistoryPublisher::PageData
77 // The format of the thumbnail we pass to indexers.
H A Dtop_sites_backend.cc54 const Images& thumbnail) {
58 url_rank, thumbnail));
133 const Images& thumbnail) {
137 db_->SetPageThumbnail(url, url_rank, thumbnail);
52 SetPageThumbnail(const MostVisitedURL& url, int url_rank, const Images& thumbnail) argument
131 SetPageThumbnailOnDBThread(const MostVisitedURL& url, int url_rank, const Images& thumbnail) argument
H A Dtop_sites_cache.cc28 RefCountedBytes* thumbnail,
31 img.thumbnail = thumbnail;
44 *bytes = found->second.thumbnail.get();
27 SetPageThumbnail(const GURL& url, RefCountedBytes* thumbnail, const ThumbnailScore& score) argument
H A Dtop_sites_database.cc73 "thumbnail BLOB,"
90 "SELECT url, url_rank, title, thumbnail, redirects, "
114 Images thumbnail; local
115 thumbnail.thumbnail = RefCountedBytes::TakeVector(&data);
116 thumbnail.thumbnail_score.boring_score = statement.ColumnDouble(5);
117 thumbnail.thumbnail_score.good_clipping = statement.ColumnBool(6);
118 thumbnail.thumbnail_score.at_top = statement.ColumnBool(7);
119 thumbnail.thumbnail_score.time_at_snapshot =
122 (*thumbnails)[gurl] = thumbnail;
143 SetPageThumbnail(const MostVisitedURL& url, int new_rank, const Images& thumbnail) argument
160 UpdatePageThumbnail( const MostVisitedURL& url, const Images& thumbnail) argument
187 AddPageThumbnail(const MostVisitedURL& url, int new_rank, const Images& thumbnail) argument
274 GetPageThumbnail(const GURL& url, Images* thumbnail) argument
[all...]
H A Dthumbnail_database.cc99 LOG(WARNING) << "Unable to update to thumbnail database to version 3.";
108 LOG(WARNING) << "Unable to update to thumbnail database to version 4.";
240 const SkBitmap& thumbnail,
248 if (!thumbnail.isNull()) {
267 SkAutoLockPixels thumbnail_lock(thumbnail);
269 reinterpret_cast<unsigned char*>(thumbnail.getAddr32(0, 0)),
270 gfx::JPEGCodec::FORMAT_SkBitmap, thumbnail.width(),
271 thumbnail.height(),
272 static_cast<int>(thumbnail.rowBytes()), 90,
287 // Publish the thumbnail t
237 SetPageThumbnail( const GURL& url, URLID id, const SkBitmap& thumbnail, const ThumbnailScore& score, base::Time time) argument
[all...]
H A Dtop_sites_unittest.cc27 #include "chrome/tools/profiles/thumbnail-inl.h"
108 // thumbnail data, which is stored as jpgs.
155 // Gets the thumbnail for |url| from TopSites.
164 SkBitmap thumbnail; local
165 thumbnail.setConfig(SkBitmap::kARGB_8888_Config, 4, 4);
166 thumbnail.allocPixels();
167 thumbnail.eraseColor(color);
168 return thumbnail;
265 // Returns true if the thumbnail equals the specified bytes.
493 // Create a dummy thumbnail
[all...]
H A Dhistory.cc434 const SkBitmap& thumbnail,
440 page_url, thumbnail, score);
433 SetPageThumbnail(const GURL& page_url, const SkBitmap& thumbnail, const ThumbnailScore& score) argument
H A Dhistory_types.h606 scoped_refptr<RefCountedBytes> thumbnail; member in struct:history::Images
H A Dtop_sites.cc186 const SkBitmap& thumbnail,
209 if (!EncodeBitmap(thumbnail, &thumbnail_data))
532 // When comparing the thumbnail scores, we need to take into account the
533 // redirect hops, which are not generated when the thumbnail is because the
541 image->thumbnail.get())
544 image->thumbnail = const_cast<RefCountedBytes*>(thumbnail_data);
552 const RefCountedBytes* thumbnail,
554 if (!SetPageThumbnailNoDB(url, thumbnail, score))
600 const RefCountedBytes* thumbnail,
607 image.second.thumbnail
185 SetPageThumbnail(const GURL& url, const SkBitmap& thumbnail, const ThumbnailScore& score) argument
551 SetPageThumbnailEncoded(const GURL& url, const RefCountedBytes* thumbnail, const ThumbnailScore& score) argument
599 AddTemporaryThumbnail(const GURL& url, const RefCountedBytes* thumbnail, const ThumbnailScore& score) argument
[all...]
/external/chromium_org/chrome/browser/media/
H A Ddesktop_media_list.h29 // The thumbnail for the source.
30 gfx::ImageSkia thumbnail; member in struct:DesktopMediaList::Source
36 // thumbnail are updated once per second. If called after StartUpdating() then
H A Dnative_desktop_media_list.cc169 // Get a thumbnail for each source.
198 gfx::ImageSkia thumbnail = local
203 media_list_, i, thumbnail));
326 sources_[index].thumbnail = image;
/external/chromium_org/chrome/browser/history/
H A Dtop_sites_backend.cc58 const Images& thumbnail) {
62 url_rank, thumbnail));
124 const Images& thumbnail) {
128 db_->SetPageThumbnail(url, url_rank, thumbnail);
56 SetPageThumbnail(const MostVisitedURL& url, int url_rank, const Images& thumbnail) argument
122 SetPageThumbnailOnDBThread(const MostVisitedURL& url, int url_rank, const Images& thumbnail) argument
H A Dtop_sites_database.cc23 // url URL of the sites for which we have a thumbnail.
24 // url_rank Index of the URL in that thumbnail, 0-based. The thumbnail
27 // title The title to display under that thumbnail.
30 // boring_score How "boring" that thumbnail is. See ThumbnailScore.
31 // good_clipping True if the thumbnail was clipped from the bottom, keeping
33 // at_top True if the thumbnail was captured at the top of the
35 // last_updated The time at which this thumbnail was last updated.
36 // load_completed True if the thumbnail was captured after the page load was
38 // last_forced If this is a forced thumbnail, record
468 Images thumbnail; local
481 SetPageThumbnail(const MostVisitedURL& url, int new_rank, const Images& thumbnail) argument
498 UpdatePageThumbnail( const MostVisitedURL& url, const Images& thumbnail) argument
525 AddPageThumbnail(const MostVisitedURL& url, int new_rank, const Images& thumbnail) argument
653 GetPageThumbnail(const GURL& url, Images* thumbnail) argument
[all...]
H A Dexpire_history_backend_unittest.cc30 #include "chrome/tools/profiles/thumbnail-inl.h"
182 // Each visit has indexed data, each URL has thumbnail. The first two URLs will
225 // Thumbnails for each URL. |thumbnail| takes ownership of decoded SkBitmap.
228 gfx::Image thumbnail = gfx::Image::CreateFrom1xBitmap(*thumbnail_bitmap); local
233 top_sites_->SetPageThumbnail(url_row1.url(), thumbnail, score);
234 top_sites_->SetPageThumbnail(url_row2.url(), thumbnail, score);
235 top_sites_->SetPageThumbnail(url_row3.url(), thumbnail, score);
406 // Verify things are the way we expect with a URL row, favicon, thumbnail.
434 // Verify things are the way we expect with a URL row, favicon, thumbnail.
482 // Should still have the thumbnail
[all...]
H A Dhistory_types.h520 // If this is a URL for which we want to force a thumbnail, records the last
522 // If it's not a forced thumbnail, keep a time of 0.
603 scoped_refptr<base::RefCountedMemory> thumbnail; member in struct:history::Images
/external/chromium_org/chrome/browser/thumbnails/
H A Dthumbnail_service_impl.cc22 // The thumbnail size in DIP.
26 // True if thumbnail retargeting feature is enabled (Finch/flags).
56 const gfx::Image& thumbnail) {
61 return local_ptr->SetPageThumbnail(context.url, thumbnail, context.score);
105 // Skip if we don't have to udpate the existing thumbnail.
110 // Skip if we don't have to udpate the temporary thumbnail (i.e. the one
55 SetPageThumbnail(const ThumbnailingContext& context, const gfx::Image& thumbnail) argument
H A Dcontent_based_thumbnailing_algorithm.cc98 LOG(WARNING) << "PostSequencedWorkerTask failed. The thumbnail for "
162 SkBitmap thumbnail = thumbnailing_utils::CreateRetargetedThumbnailImage( local
164 bool processing_failed = thumbnail.empty();
169 << "The thumbnail for " << context->url
177 source_bitmap.extractSubset(&thumbnail, gfx::RectToSkIRect(clipping_rect));
178 thumbnail = SkBitmapOperations::DownsampleByTwoUntilSize(
179 thumbnail, thumbnail_size.width(), thumbnail_size.height());
198 base::Bind(&CallbackInvocationAdapter, callback, context, thumbnail));
214 // thumbnail size).
H A Dthumbnail_tab_helper.cc42 // thumbnail for the tab rendered by the renderer, if needed. The
43 // heuristics to judge whether or not to update the thumbnail is
56 // Feed the constructed thumbnail to the thumbnail service.
58 const SkBitmap& thumbnail) {
59 gfx::Image image = gfx::Image::CreateFrom1xBitmap(thumbnail);
95 // for creating the thumbnail.
208 // Skip if we don't need to update the thumbnail.
57 UpdateThumbnail(const ThumbnailingContext& context, const SkBitmap& thumbnail) argument
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/profiles/
H A DMostVisitedSites.java34 * Interface for receiving a thumbnail for a most visited site.
38 * Callback method for fetching thumbnail of a most visited URL.
41 * @param thumbnail The bitmap thumbnail for the requested URL.
44 public void onMostVisitedURLsThumbnailAvailable(Bitmap thumbnail); argument
93 * Fetches thumbnail bitmap for a url returned by getMostVisitedURLs.
101 public void onMostVisitedURLsThumbnailAvailable(Bitmap thumbnail) {
104 callback.onMostVisitedURLsThumbnailAvailable(thumbnail);
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/metadata/
H A Dmetadata_cache.js20 * thumbnail: url, transform
40 * cache.clear(entry, 'thumbnail');
41 * cache.get(entry, 'thumbnail', function(thumbnail) {
42 * img.src = thumbnail.url;
694 * thumbnail: { url, transform }
726 return type == 'drive' || type == 'thumbnail' ||
833 result.thumbnail = {url: '', transform: null};
838 result.thumbnail = {
856 * thumbnail
[all...]
/external/chromium/chrome/browser/tab_contents/
H A Dthumbnail_generator.cc40 // when a request for a thumbnail comes in, to grab the backing store and make
51 // thumbnail for the tab rendered by the renderer, if needed. The
52 // heuristics to judge whether or not to update the thumbnail is
73 // Creates a downsampled thumbnail for the given backing store. The returned
94 // Check if a clipped thumbnail is requested.
206 // We are going to render the thumbnail asynchronously now, so keep
258 // have to return the empty thumbnail.
415 // thumbnail in the wider screen.
442 // Skip if we don't need to update the thumbnail.
448 SkBitmap thumbnail local
[all...]
/external/chromium_org/chrome/browser/chromeos/extensions/
H A Dwallpaper_private_api.cc557 // Generates thumbnail before call api function callback. We can then
558 // request thumbnail in the javascript callback.
686 // thumbnail. We should either resize it or include a wallpaper thumbnail in
718 BinaryValue* thumbnail = BinaryValue::CreateWithCopiedBuffer(data.c_str(), local
720 SetResult(thumbnail);
773 SetError(base::StringPrintf("Failed to create/write thumbnail of %s.",
/external/chromium_org/chrome/browser/ui/views/
H A Ddesktop_media_picker_views.cc60 // source as a thumbnail with the title under it.
67 // Updates thumbnail and title from |source|.
69 void SetThumbnail(const gfx::ImageSkia& thumbnail);
227 void DesktopMediaSourceView::SetThumbnail(const gfx::ImageSkia& thumbnail) { argument
228 image_view_->SetImage(thumbnail);
470 source_view->SetThumbnail(source.thumbnail);
/external/chromium_org/chrome/renderer/
H A Dchrome_render_view_observer.cc80 // and thumbnail.
89 // define to write the time necessary for thumbnail/DOM text retrieval,
387 SkBitmap thumbnail; local
392 thumbnail = Downscale(image,
397 routing_id(), thumbnail, original_size));
506 // level frame so the thumbnail may contain a frame that failed to load.

Completed in 597 milliseconds

12