summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_plugin/test_browser_plugin_guest_delegate.cc
blob: 59ae63555d9799952204a15b277e0a1f2e896224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {
}

}  // namespace content