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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/base/resource/resource_bundle_dummy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.cc
===================================================================
--- ui/base/resource/resource_bundle.cc (revision 0)
+++ ui/base/resource/resource_bundle.cc (working copy)
@@ -1,10 +1,9 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// 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 "app/resource_bundle.h"
+#include "ui/base/resource/resource_bundle.h"
-#include "app/data_pack.h"
#include "base/lock.h"
#include "base/logging.h"
#include "base/stl_util-inl.h"
@@ -13,7 +12,10 @@
#include "gfx/codec/png_codec.h"
#include "gfx/font.h"
#include "third_party/skia/include/core/SkBitmap.h"
+#include "ui/base/resource/data_pack.h"
+namespace ui {
+
namespace {
// Font sizes relative to base font.
@@ -247,7 +249,7 @@
void ResourceBundle::LoadedDataPack::Load() {
DCHECK(!data_pack_.get());
- data_pack_.reset(new app::DataPack);
+ data_pack_.reset(new ui::DataPack);
bool success = data_pack_->Load(path_);
LOG_IF(ERROR, !success) << "Failed to load " << path_.value()
<< "\nYou will not be able to use the Bookmarks Manager or "
@@ -263,3 +265,5 @@
int resource_id) const {
return data_pack_->GetStaticMemory(resource_id);
}
+
+} // namespace ui
« no previous file with comments | « ui/base/resource/resource_bundle.h ('k') | ui/base/resource/resource_bundle_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698