This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace Awesomium; | |
class MyResourceInterceptor : public ResourceInterceptor | |
{ | |
ResourceResponse* onRequest(WebView* caller, | |
const std::string& url, | |
const std::string& referrer, | |
const std::string& httpMethod, | |
const char* uploadData, | |
size_t uploadDataSize) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WinTest.cpp : Defines the entry point for the application. | |
// | |
#include "stdafx.h" | |
#include "WinTest.h" | |
#include <Awesomium/WebCore.h> | |
#include <iostream> | |
#define MAX_LOADSTRING 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Awesomium/awesomium_capi.h> | |
#include <string.h> | |
#include <stdio.h> | |
#if defined(__WIN32__) || defined(_WIN32) | |
#include <windows.h> | |
#elif defined(__APPLE__) | |
#include <unistd.h> | |
#endif | |
// The URL to render |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Various included headers | |
#include <Awesomium/WebCore.h> | |
#include <iostream> | |
#if defined(__WIN32__) || defined(_WIN32) | |
#include <windows.h> | |
#elif defined(__APPLE__) | |
#include <unistd.h> | |
#endif | |
// Various macro definitions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dart-flags" | |
"disable-3d-apis" | |
"disable-accelerated-compositing" | |
"disable-data-transfer-items" | |
"disable-desktop-notifications" | |
"disable-file-system" | |
"disable-geolocation" | |
"disable-gl-multisampling" | |
"disable-glsl-translator" | |
"ignore-gpu-blacklist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Forward declaration | |
int getWebKeyFromSDLKey(SDLKey key); | |
/// | |
/// Inject an SDL Key Event into a given WebView | |
/// | |
void handleSDLKeyEvent(Awesomium::WebView* webView, const SDL_Event& event) { | |
if (!(event.type == SDL_KEYDOWN || event.type == SDL_KEYUP)) | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Awesomium/WebCore.h> | |
#include <Awesomium/BitmapSurface.h> | |
#include <Awesomium/STLHelpers.h> | |
#include <iostream> | |
#define MAX_LOADSTRING 100 | |
using namespace Awesomium; | |
// Global Variables: |