diff options
author | Callum Prentice <callum@lindenlab.com> | 2015-06-08 16:47:16 -0700 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2015-06-08 16:47:16 -0700 |
commit | 6c203273574dfa23e4363144db63378df60bb3fe (patch) | |
tree | 5d1a2541c132f3703322aaec19b668c34d047f02 /indra/media_plugins | |
parent | d0320020b3b556294773e5f94b740d79ca9318da (diff) |
Fixed for OS X version - in progress
Diffstat (limited to 'indra/media_plugins')
-rw-r--r-- | indra/media_plugins/cef/media_plugin_cef.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/indra/media_plugins/cef/media_plugin_cef.cpp b/indra/media_plugins/cef/media_plugin_cef.cpp index 2e8e419e02..098dd67c0d 100644 --- a/indra/media_plugins/cef/media_plugin_cef.cpp +++ b/indra/media_plugins/cef/media_plugin_cef.cpp @@ -34,7 +34,8 @@ #include "llpluginmessageclasses.h" #include "media_plugin_base.h" -#include <functional> +#include "../../../build-darwin-i386/packages/include/boost/function.hpp" +#include "../../../build-darwin-i386/packages/include/boost/bind.hpp" #include "llCEFLib.h" #include <time.h> // remove me @@ -67,7 +68,7 @@ private: } } - void MediaPluginCEF::postDebugMessage(const std::string& msg); + void postDebugMessage(const std::string& msg); bool mEnableMediaPluginDebugging; LLCEFLib* mLLCEFLib; @@ -186,9 +187,14 @@ void MediaPluginCEF::receiveMessage(const char* message_string) if (message_name == "init") { - mLLCEFLib->setPageChangedCallback(std::bind(&MediaPluginCEF::pageChangedCallback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); + mLLCEFLib->setPageChangedCallback(boost::bind(&MediaPluginCEF::pageChangedCallback, this, _1, _2, _3)); - bool result = mLLCEFLib->init(1024, 1024); + LLCEFLibSettings settings; + settings.inital_width = 1024; + settings.inital_height = 1024; + settings.javascript_enabled = true; + settings.cookies_enabled = true; + bool result = mLLCEFLib->init(settings); if (!result) { //MessageBoxA(0, "FAIL INIT", 0, 0); |