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

Side by Side Diff: ui/base/resource/resource_bundle.h

Issue 7033022: Adding support for loading custom locale resources using a command line flag (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | « no previous file | ui/base/resource/resource_bundle.cc » ('j') | ui/base/resource/resource_bundle.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ 5 #ifndef UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_
6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ 6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class NSImage; 44 class NSImage;
45 #endif // __OBJC__ 45 #endif // __OBJC__
46 #endif // defined(OS_MACOSX) 46 #endif // defined(OS_MACOSX)
47 47
48 #if defined(USE_X11) 48 #if defined(USE_X11)
49 typedef struct _GdkPixbuf GdkPixbuf; 49 typedef struct _GdkPixbuf GdkPixbuf;
50 #endif 50 #endif
51 51
52 namespace ui { 52 namespace ui {
53 53
54 extern const std::string kLocaleResourcePathSwitch;
jeremy 2011/05/19 16:08:46 Should be defined in chrome/common/chrome_switches
ofri 2011/05/23 08:42:50 Done.
55
54 class DataPack; 56 class DataPack;
55 57
56 // ResourceBundle is a central facility to load images and other resources, 58 // ResourceBundle is a central facility to load images and other resources,
57 // such as theme graphics. 59 // such as theme graphics.
58 // Every resource is loaded only once. 60 // Every resource is loaded only once.
59 class ResourceBundle { 61 class ResourceBundle {
60 public: 62 public:
61 // An enumeration of the various font styles used throughout Chrome. 63 // An enumeration of the various font styles used throughout Chrome.
62 // The following holds true for the font sizes: 64 // The following holds true for the font sizes:
63 // Small <= Base <= Bold <= Medium <= MediumBold <= Large. 65 // Small <= Base <= Bold <= Medium <= MediumBold <= Large.
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 289
288 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); 290 DISALLOW_COPY_AND_ASSIGN(ResourceBundle);
289 }; 291 };
290 292
291 } // namespace ui 293 } // namespace ui
292 294
293 // TODO(beng): Someday, maybe, get rid of this. 295 // TODO(beng): Someday, maybe, get rid of this.
294 using ui::ResourceBundle; 296 using ui::ResourceBundle;
295 297
296 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ 298 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/resource/resource_bundle.cc » ('j') | ui/base/resource/resource_bundle.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698