OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/resource/resource_bundle.h" | 5 #include "ui/base/resource/resource_bundle.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 LOG(WARNING) << "Unable to pixbuf with id " << resource_id; | 88 LOG(WARNING) << "Unable to pixbuf with id " << resource_id; |
89 NOTREACHED(); // Want to assert in debug mode. | 89 NOTREACHED(); // Want to assert in debug mode. |
90 return GetEmptyImage(); | 90 return GetEmptyImage(); |
91 } | 91 } |
92 | 92 |
93 GdkPixbuf* ResourceBundle::GetRTLEnabledPixbufNamed(int resource_id) { | 93 GdkPixbuf* ResourceBundle::GetRTLEnabledPixbufNamed(int resource_id) { |
94 return *GetPixbufImpl(resource_id, true); | 94 return *GetPixbufImpl(resource_id, true); |
95 } | 95 } |
96 | 96 |
| 97 gfx::Image& ResourceBundle::GetRTLEnabledImageNamed(int resource_id) { |
| 98 return *GetPixbufImpl(resource_id, true); |
| 99 } |
| 100 |
97 } // namespace ui | 101 } // namespace ui |
OLD | NEW |