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

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

Issue 1601583002: Cleanup: Remove unused ui::ResourceBundle::ImageRTL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chromecast/common/cast_resource_delegate.cc ('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 3e169a469bd1b3f64f093ac974db722d8085c6e4..49b57481eb94c195354e474fd5046834dd0ec920 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -59,13 +59,6 @@ class UI_BASE_EXPORT ResourceBundle {
LargeBoldFont,
};
- enum ImageRTL {
- // Images are flipped in RTL locales.
- RTL_ENABLED,
- // Images are never flipped.
- RTL_DISABLED,
- };
-
enum LoadResources {
LOAD_COMMON_RESOURCES,
DO_NOT_LOAD_COMMON_RESOURCES
@@ -97,7 +90,7 @@ class UI_BASE_EXPORT ResourceBundle {
// Return an image resource or an empty value to attempt retrieval of the
// default resource.
- virtual gfx::Image GetNativeImageNamed(int resource_id, ImageRTL rtl) = 0;
+ virtual gfx::Image GetNativeImageNamed(int resource_id) = 0;
// Return a static memory resource or NULL to attempt retrieval of the
// default resource.
@@ -219,11 +212,6 @@ class UI_BASE_EXPORT ResourceBundle {
// Note that if the same resource has already been loaded in GetImageNamed(),
// gfx::Image will perform a conversion, rather than using the native image
// loading code of ResourceBundle.
- //
- // If |rtl| is RTL_ENABLED then the image is flipped in RTL locales.
- gfx::Image& GetNativeImageNamed(int resource_id, ImageRTL rtl);
-
- // Same as GetNativeImageNamed() except that RTL is not enabled.
gfx::Image& GetNativeImageNamed(int resource_id);
// Loads the raw bytes of a scale independent data resource.
« no previous file with comments | « chromecast/common/cast_resource_delegate.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698