1/*
2 * Copyright (C) 2008 Kevin Ollivier <kevino@theolliviers.com> All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 *    notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 *    notice, this list of conditions and the following disclaimer in the
11 *    documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include "config.h"
27#include "PluginView.h"
28
29#if USE(JSC)
30#include "BridgeJSC.h"
31#include <runtime/JSObject.h>
32#include <runtime/ScopeChain.h>
33#endif
34
35using namespace WTF;
36
37namespace WebCore {
38
39void PluginView::setFocus(bool)
40{
41}
42
43void PluginView::show()
44{
45}
46
47void PluginView::hide()
48{
49}
50
51void PluginView::paint(GraphicsContext*, const IntRect&)
52{
53}
54
55void PluginView::handleKeyboardEvent(KeyboardEvent*)
56{
57}
58
59void PluginView::handleMouseEvent(MouseEvent*)
60{
61}
62
63void PluginView::setParent(ScrollView*)
64{
65}
66
67void PluginView::setNPWindowRect(const IntRect&)
68{
69}
70
71#if ENABLE(NETSCAPE_PLUGIN_API)
72NPError PluginView::handlePostReadFile(Vector<char>&, uint32_t, const char*)
73{
74    return 0;
75}
76
77bool PluginView::platformGetValue(NPNVariable, void*, NPError*)
78{
79    return false;
80}
81
82bool PluginView::platformGetValueStatic(NPNVariable, void*, NPError*)
83{
84    return false;
85}
86
87void PluginView::invalidateRect(NPRect*)
88{
89}
90#endif
91
92void PluginView::invalidateRect(const IntRect&)
93{
94}
95
96#if ENABLE(NETSCAPE_PLUGIN_API)
97void PluginView::invalidateRegion(NPRegion)
98{
99}
100#endif
101
102void PluginView::forceRedraw()
103{
104}
105
106bool PluginView::platformStart()
107{
108    return true;
109}
110
111void PluginView::platformDestroy()
112{
113}
114
115void PluginView::setParentVisible(bool)
116{
117}
118
119void PluginView::updatePluginWidget()
120{
121}
122
123void PluginView::halt()
124{
125}
126
127void PluginView::restart()
128{
129}
130
131#if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
132void PluginView::handleFocusInEvent()
133{
134}
135
136void PluginView::handleFocusOutEvent()
137{
138}
139#endif
140
141// The functions below are for platforms that do not use PluginView for plugins
142// due to architectural differences. The plan is to eventually have all
143// ports using PluginView, but until then, if new functions like this are
144// added, please make sure they have the proper platform #ifs so that changes
145// do not break ports who compile both this file and PluginView.cpp.
146#if PLATFORM(MAC) || PLATFORM(CHROMIUM) || PLATFORM(EFL) || (OS(WINCE) && !PLATFORM(QT)) || (PLATFORM(QT) && !OS(WINCE)) || PLATFORM(BREWMP)
147#if ENABLE(NETSCAPE_PLUGIN_API)
148void PluginView::keepAlive(NPP)
149{
150}
151#endif
152
153#if USE(JSC)
154PassRefPtr<JSC::Bindings::Instance> PluginView::bindingInstance()
155{
156    return 0;
157}
158#endif
159
160void PluginView::privateBrowsingStateChanged(bool)
161{
162}
163
164void PluginView::setJavaScriptPaused(bool)
165{
166}
167#endif
168
169} // namespace WebCore
170