1// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/child/npapi/webplugin_delegate_impl.h"
6
7#include "content/child/npapi/plugin_instance.h"
8#include "webkit/common/cursors/webcursor.h"
9
10using WebKit::WebInputEvent;
11
12namespace content {
13
14WebPluginDelegateImpl::WebPluginDelegateImpl(PluginInstance* instance) {
15}
16
17WebPluginDelegateImpl::~WebPluginDelegateImpl() {
18}
19
20bool WebPluginDelegateImpl::PlatformInitialize() {
21  return true;
22}
23
24void WebPluginDelegateImpl::PlatformDestroyInstance() {
25  // Nothing to do here.
26}
27
28void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas,
29                                  const gfx::Rect& rect) {
30}
31
32bool WebPluginDelegateImpl::WindowedCreatePlugin() {
33  return true;
34}
35
36void WebPluginDelegateImpl::WindowedDestroyWindow() {
37}
38
39bool WebPluginDelegateImpl::WindowedReposition(
40    const gfx::Rect& window_rect,
41    const gfx::Rect& clip_rect) {
42  return true;
43}
44
45void WebPluginDelegateImpl::WindowedSetWindow() {
46}
47
48void WebPluginDelegateImpl::WindowlessUpdateGeometry(
49    const gfx::Rect& window_rect,
50    const gfx::Rect& clip_rect) {
51}
52
53void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context,
54                                            const gfx::Rect& damage_rect) {
55}
56
57bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) {
58  return true;
59}
60
61bool WebPluginDelegateImpl::PlatformHandleInputEvent(
62    const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) {
63  return false;
64}
65
66}  // namespace content
67