| 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 <atlbase.h> | 7 #include <atlbase.h> |
| 8 | 8 |
| 9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/resource_util.h" | 13 #include "base/resource_util.h" |
| 14 #include "base/stl_util-inl.h" | 14 #include "base/stl_util-inl.h" |
| 15 #include "base/string_piece.h" | 15 #include "base/string_piece.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "base/win/windows_version.h" | 17 #include "base/win/windows_version.h" |
| 18 #include "gfx/font.h" | |
| 19 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 20 #include "ui/base/resource/data_pack.h" | 19 #include "ui/base/resource/data_pack.h" |
| 21 #include "ui/base/ui_base_paths.h" | 20 #include "ui/base/ui_base_paths.h" |
| 21 #include "ui/gfx/font.h" |
| 22 | 22 |
| 23 namespace ui { | 23 namespace ui { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Returns the flags that should be passed to LoadLibraryEx. | 27 // Returns the flags that should be passed to LoadLibraryEx. |
| 28 DWORD GetDataDllLoadFlags() { | 28 DWORD GetDataDllLoadFlags() { |
| 29 if (base::win::GetVersion() >= base::win::VERSION_VISTA) | 29 if (base::win::GetVersion() >= base::win::VERSION_VISTA) |
| 30 return LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE; | 30 return LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE; |
| 31 | 31 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 base::debug::StackTrace().PrintBacktrace(); | 161 base::debug::StackTrace().PrintBacktrace(); |
| 162 NOTREACHED() << "unable to find resource: " << message_id; | 162 NOTREACHED() << "unable to find resource: " << message_id; |
| 163 return string16(); | 163 return string16(); |
| 164 } | 164 } |
| 165 } | 165 } |
| 166 // Copy into a string16 and return. | 166 // Copy into a string16 and return. |
| 167 return string16(image->achString, image->nLength); | 167 return string16(image->achString, image->nLength); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace ui; | 170 } // namespace ui; |
| OLD | NEW |