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 <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // static | 39 // static |
40 ResourceBundle& ResourceBundle::GetSharedInstance() { | 40 ResourceBundle& ResourceBundle::GetSharedInstance() { |
41 // Must call InitSharedInstance before this function. | 41 // Must call InitSharedInstance before this function. |
42 CHECK(g_shared_instance_ != NULL); | 42 CHECK(g_shared_instance_ != NULL); |
43 return *g_shared_instance_; | 43 return *g_shared_instance_; |
44 } | 44 } |
45 | 45 |
46 ResourceBundle::ResourceBundle() | 46 ResourceBundle::ResourceBundle() |
47 : lock_(new base::Lock), | 47 : lock_(new base::Lock), |
48 resources_data_(NULL) { | 48 resources_data_(NULL), |
| 49 locale_resources_data_(NULL) { |
49 } | 50 } |
50 | 51 |
51 ResourceBundle::~ResourceBundle() { | 52 ResourceBundle::~ResourceBundle() { |
52 } | 53 } |
53 | 54 |
54 | 55 |
55 string16 ResourceBundle::GetLocalizedString(int message_id) { | 56 string16 ResourceBundle::GetLocalizedString(int message_id) { |
56 return string16(); | 57 return string16(); |
57 } | 58 } |
58 | 59 |
59 // static | 60 // static |
60 void ResourceBundle::SetResourcesDataDLL(HINSTANCE handle) { | 61 void ResourceBundle::SetResourcesDataDLL(HINSTANCE handle) { |
61 } | 62 } |
62 | 63 |
63 } // namespace ui | 64 } // namespace ui |
OLD | NEW |