This source file includes following definitions.
- ResetStates
- AddMessageToConsole
- Close
- GuestProcessGone
- HandleKeyboardEvent
- LoadAbort
- RendererResponsive
- RendererUnresponsive
- RequestPermission
- SizeChanged
#include "content/browser/browser_plugin/test_browser_plugin_guest_delegate.h"
namespace content {
TestBrowserPluginGuestDelegate::TestBrowserPluginGuestDelegate()
: load_aborted_(false) {
}
TestBrowserPluginGuestDelegate::~TestBrowserPluginGuestDelegate() {
}
void TestBrowserPluginGuestDelegate::ResetStates() {
load_aborted_ = false;
load_aborted_url_ = GURL();
}
void TestBrowserPluginGuestDelegate::AddMessageToConsole(
int32 level,
const base::string16& message,
int32 line_no,
const base::string16& source_id) {
}
void TestBrowserPluginGuestDelegate::Close() {
}
void TestBrowserPluginGuestDelegate::GuestProcessGone(
base::TerminationStatus status) {
}
bool TestBrowserPluginGuestDelegate::HandleKeyboardEvent(
const NativeWebKeyboardEvent& event) {
return BrowserPluginGuestDelegate::HandleKeyboardEvent(event);
}
void TestBrowserPluginGuestDelegate::LoadAbort(bool is_top_level,
const GURL& url,
const std::string& error_type) {
load_aborted_ = true;
load_aborted_url_ = url;
}
void TestBrowserPluginGuestDelegate::RendererResponsive() {
}
void TestBrowserPluginGuestDelegate::RendererUnresponsive() {
}
bool TestBrowserPluginGuestDelegate::RequestPermission(
BrowserPluginPermissionType permission_type,
const base::DictionaryValue& request_info,
const PermissionResponseCallback& callback,
bool allowed_by_default) {
return BrowserPluginGuestDelegate::RequestPermission(permission_type,
request_info,
callback,
allowed_by_default);
}
void TestBrowserPluginGuestDelegate::SizeChanged(const gfx::Size& old_size,
const gfx::Size& new_size) {
}
}