2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
4 * Copyright (C) 2006 George Staikos <staikos@kde.org>
5 * Copyright (C) 2006 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
20 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 #include "FileButton.h"
42 #include "GraphicsContext.h"
43 #include "TextField.h"
47 #include "FrameView.h"
49 #include "ScrollBar.h"
50 #include "PlatformScrollBar.h"
51 #include "JavaAppletWidget.h"
52 #include "ScrollBar.h"
54 #include "PlatformMouseEvent.h"
55 #include "CookieJar.h"
59 #include "LocalizedStrings.h"
60 #include "PlugInInfoStore.h"
61 #include "RenderTheme.h"
62 #include "TextBoundaries.h"
63 #include "AXObjectCache.h"
65 using namespace WebCore;
67 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)
69 JavaAppletWidget::JavaAppletWidget(IntSize const&, Element*, WTF::HashMap<String, String> const&) { notImplemented(); }
71 FloatRect Font::selectionRectForComplexText(const TextRun&, const TextStyle&, const IntPoint&, int) const { notImplemented(); return FloatRect(); }
72 int Font::offsetForPositionForComplexText(const TextRun&, const TextStyle&, int, bool) const { notImplemented(); return 0; }
75 void WebCore::refreshPlugins(bool) { notImplemented(); }
77 Color WebCore::focusRingColor() { notImplemented(); return 0xFF0000FF; }
79 void Image::drawTiled(GraphicsContext*, const FloatRect&, const FloatRect&, TileRule, TileRule, CompositeOperator) { notImplemented(); }
83 void TextField::selectAll() { notImplemented(); }
84 void TextField::addSearchResult() { notImplemented(); }
85 int TextField::selectionStart() const { notImplemented(); return 0; }
86 bool TextField::hasSelectedText() const { notImplemented(); return 0; }
87 String TextField::selectedText() const { notImplemented(); return String(); }
88 void TextField::setAutoSaveName(String const&) { notImplemented(); }
89 bool TextField::checksDescendantsForFocus() const { notImplemented(); return false; }
90 void TextField::setSelection(int,int) { notImplemented(); }
91 void TextField::setMaxResults(int) { notImplemented(); }
92 bool TextField::edited() const { notImplemented(); return 0; }
93 Widget::FocusPolicy TextField::focusPolicy() const { notImplemented(); return NoFocus; }
94 TextField::TextField(TextField::Type) { notImplemented(); }
95 TextField::~TextField() { notImplemented(); }
96 void TextField::setFont(WebCore::Font const&) { notImplemented(); }
97 void TextField::setAlignment(HorizontalAlignment) { notImplemented(); }
98 void TextField::setWritingDirection(TextDirection) { notImplemented(); }
99 int TextField::maxLength() const { notImplemented(); return 0; }
100 void TextField::setMaxLength(int) { notImplemented(); }
101 String TextField::text() const { notImplemented(); return String(); }
102 void TextField::setText(String const&) { notImplemented(); }
103 int TextField::cursorPosition() const { notImplemented(); return 0; }
104 void TextField::setCursorPosition(int) { notImplemented(); }
105 void TextField::setEdited(bool) { notImplemented(); }
106 void TextField::setReadOnly(bool) { notImplemented(); }
107 void TextField::setPlaceholderString(String const&) { notImplemented(); }
108 void TextField::setColors(Color const&,Color const&) { notImplemented(); }
109 IntSize TextField::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); }
110 int TextField::baselinePosition(int) const { notImplemented(); return 0; }
111 void TextField::setLiveSearch(bool) { notImplemented(); }
113 Slider::Slider() { notImplemented(); }
114 IntSize Slider::sizeHint() const { notImplemented(); return IntSize(); }
115 Slider::~Slider() { notImplemented(); }
116 void Slider::setValue(double) { notImplemented(); }
117 void Slider::setMaxValue(double) { notImplemented(); }
118 void Slider::setMinValue(double) { notImplemented(); }
119 void Slider::setFont(WebCore::Font const&) { notImplemented(); }
120 double Slider::value() const { notImplemented(); return 0; }
121 Widget::FocusPolicy Slider::focusPolicy() const { notImplemented(); return NoFocus; }
123 ScrollBar::ScrollBar(ScrollBarClient *, ScrollBarOrientation) { notImplemented(); }
124 void ScrollBar::setSteps(int, int) { notImplemented(); }
125 bool ScrollBar::scroll(ScrollDirection, ScrollGranularity, float) { notImplemented(); return 0; }
126 bool ScrollBar::setValue(int) { notImplemented(); return 0; }
127 void ScrollBar::setKnobProportion(int, int) { notImplemented(); }
129 PlatformScrollBar::PlatformScrollBar(ScrollBarClient* client, ScrollBarOrientation orientation) : ScrollBar(client, orientation) { notImplemented(); }
130 PlatformScrollBar::~PlatformScrollBar() { notImplemented(); }
131 int PlatformScrollBar::width() const { notImplemented(); return 0; }
132 int PlatformScrollBar::height() const { notImplemented(); return 0; }
133 void PlatformScrollBar::setEnabled(bool) { notImplemented(); }
134 void PlatformScrollBar::paint(GraphicsContext*, const IntRect& damageRect) { notImplemented(); }
135 void PlatformScrollBar::setScrollBarValue(int v) { notImplemented(); }
136 void PlatformScrollBar::setKnobProportion(int visibleSize, int totalSize) { notImplemented(); }
137 void PlatformScrollBar::setRect(const IntRect&) { notImplemented(); }
139 PlatformMouseEvent::PlatformMouseEvent(const CurrentEventTag&) { notImplemented(); }
141 void CheckCacheObjectStatus(DocLoader*, CachedResource*) { notImplemented(); }
142 bool CheckIfReloading(WebCore::DocLoader*) { notImplemented(); return false; }
143 Vector<char> ServeSynchronousRequest(Loader*, DocLoader*, ResourceLoader*, KURL&, DeprecatedString&) { notImplemented(); return Vector<char>(); }
146 bool WebCore::historyContains(DeprecatedString const&) { notImplemented(); return false; }
147 String WebCore::submitButtonDefaultLabel() { return "Submit"; }
148 String WebCore::inputElementAltText() { return DeprecatedString(); }
149 String WebCore::resetButtonDefaultLabel() { return "Reset"; }
150 String WebCore::defaultLanguage() { return "en"; }
153 int WebCore::findNextSentenceFromIndex(UChar const*, int, int, bool) { notImplemented(); return 0; }
154 void WebCore::findSentenceBoundary(UChar const*, int, int, int*, int*) { notImplemented(); }
155 int WebCore::findNextWordFromIndex(UChar const*, int, int, bool) { notImplemented(); return 0; }
156 void WebCore::findWordBoundary(UChar const* str, int len, int position, int* start, int* end) {*start = position; *end = position; notImplemented(); }
158 void Frame::setNeedsReapplyStyles() { notImplemented(); }
160 int WebCore::screenDepthPerComponent(Widget*) { notImplemented(); return 0; }
161 bool WebCore::screenIsMonochrome(Widget*) { notImplemented(); return false; }
163 String WebCore::searchableIndexIntroduction() { notImplemented(); return String(); }
165 void WebCore::setFocusRingColorChangeFunction(void (*)()) { notImplemented(); }
167 void FrameView::updateBorder() { notImplemented(); }
169 bool AXObjectCache::gAccessibilityEnabled = false;
171 Vector<char> loadResourceIntoArray(const char* ) { notImplemented(); return Vector<char>(); }
173 PluginInfo* PlugInInfoStore::createPluginInfoForPluginAtIndex(unsigned) { notImplemented(); return 0; }
174 unsigned PlugInInfoStore::pluginCount() const { notImplemented(); return 0; }
175 bool WebCore::PlugInInfoStore::supportsMIMEType(const WebCore::String&) { notImplemented(); return false; }
177 FileButton::FileButton(Frame*) { notImplemented(); }
178 void FileButton::click(bool) { notImplemented(); }
179 IntSize FileButton::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); }
180 Widget::FocusPolicy FileButton::focusPolicy() const { notImplemented(); return NoFocus; }
181 WebCore::IntRect FileButton::frameGeometry() const { notImplemented(); return IntRect(); }
182 void FileButton::setFilename(DeprecatedString const&) { notImplemented(); }
183 int FileButton::baselinePosition(int) const { notImplemented(); return 0; }
184 void FileButton::setFrameGeometry(WebCore::IntRect const&) { notImplemented(); }
185 void FileButton::setDisabled(bool) { notImplemented(); }
189 DeprecatedStringList supportedKeySizes() { notImplemented(); return DeprecatedStringList(); }
190 DeprecatedString signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url) { return DeprecatedString(); }