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

Side by Side Diff: app/resource_bundle_linux.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « app/resource_bundle_dummy.cc ('k') | app/resource_bundle_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "app/resource_bundle.h" 5 #include "app/resource_bundle.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/app_paths.h" 9 #include "app/app_paths.h"
10 #include "app/gfx/font.h"
11 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
12 #include "base/base_paths.h" 11 #include "base/base_paths.h"
13 #include "base/data_pack.h" 12 #include "base/data_pack.h"
14 #include "base/file_path.h" 13 #include "base/file_path.h"
15 #include "base/file_util.h" 14 #include "base/file_util.h"
16 #include "base/i18n/rtl.h" 15 #include "base/i18n/rtl.h"
17 #include "base/logging.h" 16 #include "base/logging.h"
18 #include "base/path_service.h" 17 #include "base/path_service.h"
19 #include "base/string_piece.h" 18 #include "base/string_piece.h"
20 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "gfx/font.h"
21 #include "gfx/gtk_util.h" 21 #include "gfx/gtk_util.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 23
24 namespace { 24 namespace {
25 25
26 // Convert the raw image data into a GdkPixbuf. The GdkPixbuf that is returned 26 // Convert the raw image data into a GdkPixbuf. The GdkPixbuf that is returned
27 // has a ref count of 1 so the caller must call g_object_unref to free the 27 // has a ref count of 1 so the caller must call g_object_unref to free the
28 // memory. 28 // memory.
29 GdkPixbuf* LoadPixbuf(RefCountedStaticMemory* data, bool rtl_enabled) { 29 GdkPixbuf* LoadPixbuf(RefCountedStaticMemory* data, bool rtl_enabled) {
30 ScopedGObject<GdkPixbufLoader>::Type loader(gdk_pixbuf_loader_new()); 30 ScopedGObject<GdkPixbufLoader>::Type loader(gdk_pixbuf_loader_new());
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 } 139 }
140 140
141 GdkPixbuf* ResourceBundle::GetPixbufNamed(int resource_id) { 141 GdkPixbuf* ResourceBundle::GetPixbufNamed(int resource_id) {
142 return GetPixbufImpl(resource_id, false); 142 return GetPixbufImpl(resource_id, false);
143 } 143 }
144 144
145 GdkPixbuf* ResourceBundle::GetRTLEnabledPixbufNamed(int resource_id) { 145 GdkPixbuf* ResourceBundle::GetRTLEnabledPixbufNamed(int resource_id) {
146 return GetPixbufImpl(resource_id, true); 146 return GetPixbufImpl(resource_id, true);
147 } 147 }
OLDNEW
« no previous file with comments | « app/resource_bundle_dummy.cc ('k') | app/resource_bundle_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698