17 #include "pandabase.h"
18 #include "typedReferenceCount.h"
21 #include "awesomium_includes.h"
23 class WebViewListener;
46 int x, y, width, height;
49 Rect(
int x,
int y,
int width,
int height);
59 INLINE
void destroy(
void);
61 INLINE
void setListener(Awesomium::WebViewListener * listener);
63 INLINE Awesomium::WebViewListener* getListener();
66 void loadURL2(
const string& url,
const string& frameName =
"",
const string& username=
"" ,
const string& password=
"");
69 void loadHTML2(
const std::string& html,
const std::string& frameName =
"");
72 void loadFile2(
const std::string& file,
const std::string& frameName =
"" );
74 INLINE
void goToHistoryOffset(
int offset);
77 INLINE
void executeJavascript2(
const std::string& javascript,
const std::string& frameName =
"" );
79 INLINE Awesomium::FutureJSValue executeJavascriptWithResult2(
const std::string& javascript,
const std::string& frameName =
"");
81 INLINE
void setProperty(
const std::string& name,
const Awesomium::JSValue& value);
83 INLINE
void setCallback(
const std::string& name);
85 INLINE
bool isDirty();
87 INLINE
void render(
size_t destination,
int destRowSpan,
int destDepth);
89 void render(
size_t destination,
int destRowSpan,
int destDepth,
AwWebView::Rect * renderedRect);
91 void injectMouseMove(
int x,
int y);
97 INLINE
void injectMouseWheelXY(
int scrollAmountX,
int scrollAmountY);
99 INLINE
void injectMouseWheel(
int scrollAmountY) {
100 injectMouseWheelXY(0, scrollAmountY);
103 INLINE
void injectKeyEvent(
bool press,
int modifiers,
int windowsCode,
int nativeCode=0);
106 Awesomium::WebView * _myWebView;
112 static void init_type() {
113 TypedReferenceCount::init_type();
114 register_type(_type_handle,
"AwWebView",
115 TypedReferenceCount::get_class_type());
118 return get_class_type();
120 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
126 #include "awWebView.I"
MouseButton
Mouse button enumerations, used with WebView::injectMouseDown and WebView::injectMouseUp.
A simple rectangle class, used with WebView::render.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
Thin bindings, wraps a WebView * returned from WebCore.createWebView.
TypeHandle is the identifier used to differentiate C++ class types.