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) { | |
50 } | 49 } |
51 | 50 |
52 ResourceBundle::~ResourceBundle() { | 51 ResourceBundle::~ResourceBundle() { |
53 } | 52 } |
54 | 53 |
55 | 54 |
56 string16 ResourceBundle::GetLocalizedString(int message_id) { | 55 string16 ResourceBundle::GetLocalizedString(int message_id) { |
57 return string16(); | 56 return string16(); |
58 } | 57 } |
59 | 58 |
60 // static | 59 // static |
61 void ResourceBundle::SetResourcesDataDLL(HINSTANCE handle) { | 60 void ResourceBundle::SetResourcesDataDLL(HINSTANCE handle) { |
62 } | 61 } |
63 | 62 |
64 } // namespace ui | 63 } // namespace ui |
OLD | NEW |