mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Code cleanup branch (#618)
* Make height map fallback layer work again * Add documentation to joystick button bindings * Removed grouped property headers * Add new version number constant generated by CMake * Make Joystick deadzone work properly * Change the startup date on Earth to today * Fix key modifier handling * Add debugging indices for TreeNodeDebugging * Fix script schedule for OsirisRex * Do not open Mission schedule automatically * Upload default projection texture automatically * General code cleanup * Fix check_style_guide warnings * Remove .clang-format * MacOS compile fixes * Clang analyzer fixes
This commit is contained in:
@@ -23,9 +23,9 @@
|
||||
****************************************************************************************/
|
||||
|
||||
#include "include/webbrowserapp.h"
|
||||
namespace openspace {
|
||||
//#include <modules/webbrowser/include/webbrowserapp.h>
|
||||
|
||||
WebBrowserApp::WebBrowserApp() = default;
|
||||
namespace openspace {
|
||||
|
||||
CefRefPtr<CefRenderProcessHandler> WebBrowserApp::GetRenderProcessHandler() {
|
||||
return this;
|
||||
@@ -33,11 +33,12 @@ CefRefPtr<CefRenderProcessHandler> WebBrowserApp::GetRenderProcessHandler() {
|
||||
|
||||
void WebBrowserApp::OnContextCreated(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame,
|
||||
CefRefPtr<CefV8Context> context) {
|
||||
CefRefPtr<CefV8Context> context)
|
||||
{
|
||||
CEF_REQUIRE_UI_THREAD();
|
||||
CefRefPtr<CefV8Value> val = CefV8Value::CreateBool(true);
|
||||
CefRefPtr<CefV8Value> global = context->GetGlobal();
|
||||
global->SetValue("IsWithinCEF", val, V8_PROPERTY_ATTRIBUTE_NONE);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user