This source file includes following definitions.
- LoadCommonResources
- GetNativeImageNamed
#include "ui/base/resource/resource_bundle.h"
#include <string>
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "ui/base/resource/resource_handle.h"
#include "ui/base/ui_base_paths.h"
namespace ui {
void ResourceBundle::LoadCommonResources() {
base::FilePath path;
PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &path);
AddDataPackFromPath(path.AppendASCII("chrome_100_percent.pak"),
SCALE_FACTOR_100P);
}
gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) {
DCHECK_EQ(rtl, RTL_DISABLED);
return GetImageNamed(resource_id);
}
}