Index: chrome/browser/extensions/tab_helper.h |
diff --git a/chrome/browser/extensions/tab_helper.h b/chrome/browser/extensions/tab_helper.h |
index 0905d71f949584cdb3dd57a1954bd9d792a7bcf2..1b939fff2121c6d0a8e15f99dc39671624a53c7b 100644 |
--- a/chrome/browser/extensions/tab_helper.h |
+++ b/chrome/browser/extensions/tab_helper.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
#include <map> |
+#include <set> |
#include <string> |
#include <vector> |
@@ -87,6 +88,14 @@ class TabHelper : public content::WebContentsObserver, |
TabHelper* tab_helper_; |
}; |
+ // This finds the closest not-smaller bitmap in |bitmaps| for each size in |
+ // |sizes| and resizes it to that size. This returns a vector of bitmaps |
+ // which contains only bitmaps of a size in |sizes| and at most one bitmap of |
+ // each size. |
+ static std::vector<SkBitmap> ConstrainBitmapsToSizes( |
+ const std::vector<SkBitmap>& bitmaps, |
+ const std::set<int>& sizes); |
+ |
virtual ~TabHelper(); |
void AddScriptExecutionObserver(ScriptExecutionObserver* observer) { |