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

Side by Side Diff: app/resource_bundle_win.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | « app/resource_bundle_posix.cc ('k') | app/text_elider.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-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "app/resource_bundle.h" 5 #include "app/resource_bundle.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 8
9 #include "app/app_paths.h" 9 #include "app/app_paths.h"
10 #include "app/gfx/font.h"
11 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
12 #include "base/debug_util.h" 11 #include "base/debug_util.h"
13 #include "base/file_util.h" 12 #include "base/file_util.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #include "base/path_service.h" 14 #include "base/path_service.h"
16 #include "base/resource_util.h" 15 #include "base/resource_util.h"
17 #include "base/string_piece.h" 16 #include "base/string_piece.h"
18 #include "base/win_util.h" 17 #include "base/win_util.h"
18 #include "gfx/font.h"
19 19
20 namespace { 20 namespace {
21 21
22 // Returns the flags that should be passed to LoadLibraryEx. 22 // Returns the flags that should be passed to LoadLibraryEx.
23 DWORD GetDataDllLoadFlags() { 23 DWORD GetDataDllLoadFlags() {
24 if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA) 24 if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA)
25 return LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE; 25 return LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE;
26 26
27 return DONT_RESOLVE_DLL_REFERENCES; 27 return DONT_RESOLVE_DLL_REFERENCES;
28 } 28 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 message_id); 135 message_id);
136 if (!image) { 136 if (!image) {
137 StackTrace().PrintBacktrace(); // See http://crbug.com/21925. 137 StackTrace().PrintBacktrace(); // See http://crbug.com/21925.
138 NOTREACHED() << "unable to find resource: " << message_id; 138 NOTREACHED() << "unable to find resource: " << message_id;
139 return std::wstring(); 139 return std::wstring();
140 } 140 }
141 } 141 }
142 // Copy into a string16 and return. 142 // Copy into a string16 and return.
143 return string16(image->achString, image->nLength); 143 return string16(image->achString, image->nLength);
144 } 144 }
OLDNEW
« no previous file with comments | « app/resource_bundle_posix.cc ('k') | app/text_elider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698