2
* Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; version 2 of the
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
#ifndef _STUB_WEBBROWSER_H_
21
#define _STUB_WEBBROWSER_H_
23
#include "stub_view.h"
28
class WebBrowserImpl : public ViewImpl
31
WebBrowserImpl(::mforms::WebBrowser *self)
36
static bool __stdcall create(WebBrowser*)
41
static void __stdcall set_html(WebBrowser*, const std::string&)
45
static void __stdcall navigate(WebBrowser*, const std::string&)
49
static std::string __stdcall get_document_title(WebBrowser*)
58
::mforms::ControlFactory *f = ::mforms::ControlFactory::get_instance();
60
f->_webbrowser_impl.create = &WebBrowserImpl::create;
61
f->_webbrowser_impl.get_document_title = &WebBrowserImpl::get_document_title;
62
f->_webbrowser_impl.navigate = &WebBrowserImpl::navigate;
63
f->_webbrowser_impl.set_html = &WebBrowserImpl::set_html;