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

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

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « third_party/leveldatabase/env_chromium.cc ('k') | ui/base/resource/resource_bundle.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // Overrides the path to the pak file from which the locale resources will be 243 // Overrides the path to the pak file from which the locale resources will be
244 // loaded. Pass an empty path to undo. 244 // loaded. Pass an empty path to undo.
245 void OverrideLocalePakForTest(const base::FilePath& pak_path); 245 void OverrideLocalePakForTest(const base::FilePath& pak_path);
246 246
247 // Returns the full pathname of the locale file to load. May return an empty 247 // Returns the full pathname of the locale file to load. May return an empty
248 // string if no locale data files are found and |test_file_exists| is true. 248 // string if no locale data files are found and |test_file_exists| is true.
249 // Used on Android to load the local file in the browser process and pass it 249 // Used on Android to load the local file in the browser process and pass it
250 // to the sandboxed renderer process. 250 // to the sandboxed renderer process.
251 base::FilePath GetLocaleFilePath(const std::string& app_locale, 251 base::FilePath GetLocaleFilePath(const std::string& app_locale,
252 bool test_file_exists); 252 bool test_file_exists);
253 253
254 // Returns the maximum scale factor currently loaded. 254 // Returns the maximum scale factor currently loaded.
255 // Returns SCALE_FACTOR_100P if no resource is loaded. 255 // Returns SCALE_FACTOR_100P if no resource is loaded.
256 ScaleFactor max_scale_factor() const { 256 ScaleFactor max_scale_factor() const {
257 return max_scale_factor_; 257 return max_scale_factor_;
258 } 258 }
259 259
260 private: 260 private:
261 FRIEND_TEST_ALL_PREFIXES(ResourceBundleTest, DelegateGetPathForLocalePack); 261 FRIEND_TEST_ALL_PREFIXES(ResourceBundleTest, DelegateGetPathForLocalePack);
262 FRIEND_TEST_ALL_PREFIXES(ResourceBundleTest, DelegateGetImageNamed); 262 FRIEND_TEST_ALL_PREFIXES(ResourceBundleTest, DelegateGetImageNamed);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); 386 DISALLOW_COPY_AND_ASSIGN(ResourceBundle);
387 }; 387 };
388 388
389 } // namespace ui 389 } // namespace ui
390 390
391 // TODO(beng): Someday, maybe, get rid of this. 391 // TODO(beng): Someday, maybe, get rid of this.
392 using ui::ResourceBundle; 392 using ui::ResourceBundle;
393 393
394 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ 394 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_
OLDNEW
« no previous file with comments | « third_party/leveldatabase/env_chromium.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698