Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Unified Diff: chrome/browser/extensions/tab_helper.h

Issue 105873009: Use apple-touch-icons for streamlined hosted apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698