2010-10-03 23:04:50 +02:00
|
|
|
// Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
#ifndef _CEFCLIENT_RESOURCE_UTIL
|
|
|
|
#define _CEFCLIENT_RESOURCE_UTIL
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
#include "include/cef.h"
|
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#if defined(OS_WIN)
|
2010-10-28 22:38:27 +02:00
|
|
|
|
2011-09-20 22:41:54 +02:00
|
|
|
#include "resource.h"
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
// Load a resource of type BINARY
|
|
|
|
bool LoadBinaryResource(int binaryId, DWORD &dwSize, LPBYTE &pBytes);
|
2011-03-04 03:14:04 +01:00
|
|
|
CefRefPtr<CefStreamReader> GetBinaryResourceReader(int binaryId);
|
2010-10-28 22:38:27 +02:00
|
|
|
|
2011-10-24 22:20:52 +02:00
|
|
|
#elif (defined(OS_MACOSX) || defined(OS_POSIX))
|
2011-03-04 03:14:04 +01:00
|
|
|
|
|
|
|
// Load the resource with the specified name.
|
|
|
|
bool LoadBinaryResource(const char* resource_name, std::string& resource_data);
|
|
|
|
CefRefPtr<CefStreamReader> GetBinaryResourceReader(const char* resource_name);
|
|
|
|
|
|
|
|
#endif
|
2010-10-28 22:38:27 +02:00
|
|
|
|
|
|
|
#endif // _CEFCLIENT_RESOURCE_UTIL
|