00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "config_awesomium.h"
00016 #include "awWebCore.h"
00017 #include "WebCore.h"
00018
00019 TypeHandle AwWebCore::_type_handle;
00020
00021 AwWebCore::
00022 AwWebCore(AwWebCore::LogLevel level, bool enablePlugins , AwWebCore::PixelFormat pixelFormat)
00023 #ifndef CPPPARSER
00024 :
00025 WebCore(static_cast<Awesomium::LogLevel>(level), enablePlugins, static_cast<Awesomium::PixelFormat>(pixelFormat))
00026 #endif
00027 {
00028 awesomium_cat.info() << "constructing webcore\n";
00029 }
00030
00031 AwWebCore::
00032 ~AwWebCore() {
00033 awesomium_cat.info() << "destructor webcore\n";
00034 }
00035
00036 Awesomium::WebCore& AwWebCore::
00037 Get() {
00038 return WebCore::Get();
00039 }
00040
00041 Awesomium::WebCore* AwWebCore::
00042 GetPointer() {
00043 return WebCore::GetPointer();
00044 }
00045
00046 AwWebView * AwWebCore::
00047 createWebView(int width, int height, bool isTransparent , bool enableAsyncRendering , int maxAsyncRenderPerSec ) {
00048 Awesomium::WebView * newView = WebCore::createWebView(width, height, isTransparent, enableAsyncRendering, maxAsyncRenderPerSec);
00049 AwWebView * result = new AwWebView(newView);
00050 return result;
00051 }
00052
00053 AwWebCore::PixelFormat AwWebCore::
00054 getPixelFormat() const {
00055 return ( static_cast<AwWebCore::PixelFormat>( WebCore::getPixelFormat()) );
00056 }
00057