Panda3D
awWebView.I
1 // Filename: awWebView.I
2 // Created by: rurbino (12Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 INLINE void AwWebView::
16 destroy(void)
17 {
18  _myWebView->destroy();
19 }
20 
21 
22 INLINE void AwWebView::
23 setListener(Awesomium::WebViewListener * listener) {
24  _myWebView->setListener(listener);
25 }
26 
27 INLINE Awesomium::WebViewListener* AwWebView::
28 getListener() {
29  return _myWebView->getListener();
30 }
31 
32 INLINE void AwWebView::
33 goToHistoryOffset(int offset) {
34  _myWebView->goToHistoryOffset(offset);
35 }
36 
37 INLINE void AwWebView::
38 executeJavascript2(const std::string& javascript, const std::string& frameName ) {
39  _myWebView->executeJavascript2(javascript, frameName);
40 }
41 
42 INLINE Awesomium::FutureJSValue AwWebView::
43 executeJavascriptWithResult2(const std::string& javascript, const std::string& frameName ) {
44  return _myWebView->executeJavascriptWithResult2(javascript, frameName);
45 }
46 
47 INLINE void AwWebView::
48 setProperty(const std::string& name, const Awesomium::JSValue& value) {
49  _myWebView->setProperty(name, value);
50 }
51 
52 INLINE void AwWebView::
53 setCallback(const std::string& name) {
54  _myWebView->setCallback(name);
55 }
56 
57 INLINE bool AwWebView::
58 isDirty() {
59  return _myWebView->isDirty();
60 }
61 
62 INLINE void AwWebView::
63 render( size_t destination, int destRowSpan, int destDepth)
64 {
65  _myWebView->render( reinterpret_cast<unsigned char *>(destination), destRowSpan, destDepth, 0);
66 }
67 
68 
69 
70 INLINE void AwWebView::
71 injectMouseUp(AwWebView::MouseButton button) {
72  _myWebView->injectMouseUp(static_cast<Awesomium::MouseButton>(button));
73 }
74 
75 INLINE void AwWebView::
76 injectMouseWheelXY(int scrollAmountX, int scrollAmountY){
77  _myWebView->injectMouseWheelXY(scrollAmountX, scrollAmountY);
78 }
79 
80 INLINE void AwWebView::
81 injectKeyEvent(bool press, int modifiers, int windowsCode, int nativeCode) {
82  _myWebView->injectKeyEvent(press, modifiers, windowsCode, nativeCode);
83 }
84 
MouseButton
Mouse button enumerations, used with WebView::injectMouseDown and WebView::injectMouseUp.
Definition: awWebView.h:36