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

Unified Diff: ui/base/resource/resource_bundle_dummy.cc

Issue 7863024: Make the NaCl windows 64 bit binaries not depend on chrome targets. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify chrome_exe.gypi Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/resource/resource_bundle.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_dummy.cc
===================================================================
--- ui/base/resource/resource_bundle_dummy.cc (revision 100721)
+++ ui/base/resource/resource_bundle_dummy.cc (working copy)
@@ -1,63 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/base/resource/resource_bundle.h"
-
-#include <windows.h>
-
-#include "base/logging.h"
-#include "base/synchronization/lock.h"
-
-// NOTE(gregoryd): This is a hack to avoid creating more nacl_win64-specific
-// files. The font members of ResourceBundle are never initialized in our code
-// so we can get away with an empty class definition.
-namespace gfx {
-class Font {};
-}
-
-namespace ui {
-
-ResourceBundle* ResourceBundle::g_shared_instance_ = NULL;
-
-// static
-std::string ResourceBundle::InitSharedInstance(
- const std::string& pref_locale) {
- DCHECK(g_shared_instance_ == NULL) << "ResourceBundle initialized twice";
- g_shared_instance_ = new ResourceBundle();
- return std::string();
-}
-
-// static
-void ResourceBundle::CleanupSharedInstance() {
- if (g_shared_instance_) {
- delete g_shared_instance_;
- g_shared_instance_ = NULL;
- }
-}
-
-// static
-ResourceBundle& ResourceBundle::GetSharedInstance() {
- // Must call InitSharedInstance before this function.
- CHECK(g_shared_instance_ != NULL);
- return *g_shared_instance_;
-}
-
-ResourceBundle::ResourceBundle()
- : lock_(new base::Lock),
- resources_data_(NULL) {
-}
-
-ResourceBundle::~ResourceBundle() {
-}
-
-
-string16 ResourceBundle::GetLocalizedString(int message_id) {
- return string16();
-}
-
-// static
-void ResourceBundle::SetResourcesDataDLL(HINSTANCE handle) {
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/resource/resource_bundle.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698