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

Unified Diff: ui/base/resource/resource_bundle.h

Issue 2149323003: Change the way that gzipped resources are loaded from resources.pak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 4 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 | « tools/grit/grit/node/include_unittest.py ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.h
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
index 15471665ae843f88b42144d9952dd9f6adbdfbad..ed1067555de5a678b148d9bf400182716e0e9642 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -50,8 +50,6 @@ class UI_BASE_EXPORT ResourceBundle {
static const int kMediumFontDelta = 3;
static const int kLargeFontDelta = 8;
- static constexpr const char* CUSTOM_GZIP_HEADER = "\xff\x1f\x8b";
-
// Legacy font style mappings. TODO(tapted): Phase these out in favour of
// client code providing their own constant with the desired font size delta.
enum FontStyle {
@@ -359,15 +357,6 @@ class UI_BASE_EXPORT ResourceBundle {
SkBitmap* bitmap,
bool* fell_back_to_1x) const;
- // Loads the raw bytes of a data resource nearest the scale factor
- // |scale_factor| into |bytes|, without doing any processing or
- // interpretation of the resource. Use ResourceHandle::SCALE_FACTOR_NONE
- // for scale independent image resources (such as wallpaper).
- // Returns NULL if we fail to read the resource.
- base::StringPiece GetRawDataResourceForScaleImpl(
- int resource_id,
- ScaleFactor scale_factor) const;
-
// Returns true if missing scaled resources should be visually indicated when
// drawing the fallback (e.g., by tinting the image).
static bool ShouldHighlightMissingScaledResources();
« no previous file with comments | « tools/grit/grit/node/include_unittest.py ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698