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

Side by Side Diff: app/resource_bundle.h

Issue 172046: A canvas_paint for OS X. (Closed)
Patch Set: Created 11 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 unified diff | Download patch
« no previous file with comments | « app/gfx/canvas_paint.h ('k') | skia/ext/canvas_paint.h » ('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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #ifndef APP_RESOURCE_BUNDLE_H_ 5 #ifndef APP_RESOURCE_BUNDLE_H_
6 #define APP_RESOURCE_BUNDLE_H_ 6 #define APP_RESOURCE_BUNDLE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Delete the ResourceBundle for this process if it exists. 60 // Delete the ResourceBundle for this process if it exists.
61 static void CleanupSharedInstance(); 61 static void CleanupSharedInstance();
62 62
63 // Return the global resource loader instance. 63 // Return the global resource loader instance.
64 static ResourceBundle& GetSharedInstance(); 64 static ResourceBundle& GetSharedInstance();
65 65
66 // Load the data file that contains theme resources if present. 66 // Load the data file that contains theme resources if present.
67 void LoadThemeResources(); 67 void LoadThemeResources();
68 68
69 // Gets the bitmap with the specified resource_id, first by looking into the 69 // Gets the bitmap with the specified resource_id, first by looking into the
70 // theme data, than in the current module data if applicable. 70 // theme data, then in the current module data if applicable.
71 // Returns a pointer to a shared instance of the SkBitmap. This shared bitmap 71 // Returns a pointer to a shared instance of the SkBitmap. This shared bitmap
72 // is owned by the resource bundle and should not be freed. 72 // is owned by the resource bundle and should not be freed.
73 // 73 //
74 // The bitmap is assumed to exist. This function will log in release, and 74 // The bitmap is assumed to exist. This function will log in release, and
75 // assert in debug mode if it does not. On failure, this will return a 75 // assert in debug mode if it does not. On failure, this will return a
76 // pointer to a shared empty placeholder bitmap so it will be visible what 76 // pointer to a shared empty placeholder bitmap so it will be visible what
77 // is missing. 77 // is missing.
78 SkBitmap* GetBitmapNamed(int resource_id); 78 SkBitmap* GetBitmapNamed(int resource_id);
79 79
80 // Loads the raw bytes of an image resource into |bytes|, 80 // Loads the raw bytes of an image resource into |bytes|,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 scoped_ptr<gfx::Font> medium_bold_font_; 209 scoped_ptr<gfx::Font> medium_bold_font_;
210 scoped_ptr<gfx::Font> large_font_; 210 scoped_ptr<gfx::Font> large_font_;
211 scoped_ptr<gfx::Font> web_font_; 211 scoped_ptr<gfx::Font> web_font_;
212 212
213 static ResourceBundle* g_shared_instance_; 213 static ResourceBundle* g_shared_instance_;
214 214
215 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); 215 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle);
216 }; 216 };
217 217
218 #endif // APP_RESOURCE_BUNDLE_H_ 218 #endif // APP_RESOURCE_BUNDLE_H_
OLDNEW
« no previous file with comments | « app/gfx/canvas_paint.h ('k') | skia/ext/canvas_paint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698