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.
41 #include "GraphicsContext.h"
42 #include "TextField.h"
46 #include "FrameView.h"
48 #include "ScrollBar.h"
49 #include "PlatformScrollBar.h"
50 #include "JavaAppletWidget.h"
51 #include "ScrollBar.h"
53 #include "PlatformMouseEvent.h"
54 #include "CookieJar.h"
58 #include "LocalizedStrings.h"
59 #include "PlugInInfoStore.h"
60 #include "RenderTheme.h"
61 #include "TextBoundaries.h"
62 #include "AXObjectCache.h"
63 #include "IconDatabase.h"
64 #include "IconLoader.h"
66 using namespace WebCore;
68 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)
70 JavaAppletWidget::JavaAppletWidget(IntSize const&, Element*, WTF::HashMap<String, String> const&) { notImplemented(); }
72 FloatRect Font::selectionRectForComplexText(const TextRun&, const TextStyle&, const IntPoint&, int) const { notImplemented(); return FloatRect(); }
73 int Font::offsetForPositionForComplexText(const TextRun&, const TextStyle&, int, bool) const { notImplemented(); return 0; }
76 void WebCore::refreshPlugins(bool) { notImplemented(); }
78 Color WebCore::focusRingColor() { notImplemented(); return 0xFF0000FF; }
80 void Image::drawTiled(GraphicsContext*, const FloatRect&, const FloatRect&, TileRule, TileRule, CompositeOperator) { notImplemented(); }
84 void TextField::selectAll() { notImplemented(); }
85 void TextField::addSearchResult() { notImplemented(); }
86 int TextField::selectionStart() const { notImplemented(); return 0; }
87 bool TextField::hasSelectedText() const { notImplemented(); return 0; }
88 String TextField::selectedText() const { notImplemented(); return String(); }
89 void TextField::setAutoSaveName(String const&) { notImplemented(); }
90 bool TextField::checksDescendantsForFocus() const { notImplemented(); return false; }
91 void TextField::setSelection(int,int) { notImplemented(); }
92 void TextField::setMaxResults(int) { notImplemented(); }
93 bool TextField::edited() const { notImplemented(); return 0; }
94 Widget::FocusPolicy TextField::focusPolicy() const { notImplemented(); return NoFocus; }
95 TextField::TextField(TextField::Type) { notImplemented(); }
96 TextField::~TextField() { notImplemented(); }
97 void TextField::setFont(WebCore::Font const&) { notImplemented(); }
98 void TextField::setAlignment(HorizontalAlignment) { notImplemented(); }
99 void TextField::setWritingDirection(TextDirection) { notImplemented(); }
100 int TextField::maxLength() const { notImplemented(); return 0; }
101 void TextField::setMaxLength(int) { notImplemented(); }
102 String TextField::text() const { notImplemented(); return String(); }
103 void TextField::setText(String const&) { notImplemented(); }
104 int TextField::cursorPosition() const { notImplemented(); return 0; }
105 void TextField::setCursorPosition(int) { notImplemented(); }
106 void TextField::setEdited(bool) { notImplemented(); }
107 void TextField::setReadOnly(bool) { notImplemented(); }
108 void TextField::setPlaceholderString(String const&) { notImplemented(); }
109 void TextField::setColors(Color const&,Color const&) { notImplemented(); }
110 IntSize TextField::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); }
111 int TextField::baselinePosition(int) const { notImplemented(); return 0; }
112 void TextField::setLiveSearch(bool) { notImplemented(); }
114 Slider::Slider() { notImplemented(); }
115 IntSize Slider::sizeHint() const { notImplemented(); return IntSize(); }
116 Slider::~Slider() { notImplemented(); }
117 void Slider::setValue(double) { notImplemented(); }
118 void Slider::setMaxValue(double) { notImplemented(); }
119 void Slider::setMinValue(double) { notImplemented(); }
120 void Slider::setFont(WebCore::Font const&) { notImplemented(); }
121 double Slider::value() const { notImplemented(); return 0; }
122 Widget::FocusPolicy Slider::focusPolicy() const { notImplemented(); return NoFocus; }
124 ScrollBar::ScrollBar(ScrollBarClient*, ScrollBarOrientation, ScrollBarControlSize) { notImplemented(); }
125 void ScrollBar::setSteps(int, int) { notImplemented(); }
126 bool ScrollBar::scroll(ScrollDirection, ScrollGranularity, float) { notImplemented(); return 0; }
127 bool ScrollBar::setValue(int) { notImplemented(); return 0; }
128 void ScrollBar::setProportion(int, int) { notImplemented(); }
130 PlatformScrollBar::PlatformScrollBar(ScrollBarClient* client, ScrollBarOrientation orientation, ScrollBarControlSize controlSize) : ScrollBar(client, orientation, controlSize) { notImplemented(); }
131 PlatformScrollBar::~PlatformScrollBar() { notImplemented(); }
132 int PlatformScrollBar::width() const { notImplemented(); return 0; }
133 int PlatformScrollBar::height() const { notImplemented(); return 0; }
134 void PlatformScrollBar::setEnabled(bool) { notImplemented(); }
135 void PlatformScrollBar::paint(GraphicsContext*, const IntRect& damageRect) { notImplemented(); }
136 void PlatformScrollBar::updateThumbPosition() { notImplemented(); }
137 void PlatformScrollBar::updateThumbProportion() { notImplemented(); }
138 void PlatformScrollBar::setRect(const IntRect&) { notImplemented(); }
140 PlatformMouseEvent::PlatformMouseEvent(const CurrentEventTag&) { notImplemented(); }
142 void IconLoader::stopLoading() { notImplemented(); }
143 void IconLoader::startLoading() { notImplemented(); }
144 IconLoader* IconLoader::createForFrame(Frame *frame) { return 0; }
146 bool IconDatabase::isIconExpiredForIconURL(const String& url) { return false; }
147 bool IconDatabase::hasEntryForIconURL(const String& url) { return false; }
148 IconDatabase* IconDatabase::sharedIconDatabase() { return 0; }
149 bool IconDatabase::setIconURLForPageURL(const String& iconURL, const String& pageURL) { return false; }
151 void CheckCacheObjectStatus(DocLoader*, CachedResource*) { }
152 bool CheckIfReloading(WebCore::DocLoader*) { return false; }
153 Vector<char> ServeSynchronousRequest(Loader*, DocLoader*, ResourceLoader*, KURL&, DeprecatedString&) { notImplemented(); return Vector<char>(); }
156 bool WebCore::historyContains(DeprecatedString const&) { return false; }
157 String WebCore::submitButtonDefaultLabel() { return "Submit"; }
158 String WebCore::inputElementAltText() { return DeprecatedString(); }
159 String WebCore::resetButtonDefaultLabel() { return "Reset"; }
160 String WebCore::defaultLanguage() { return "en"; }
161 String WebCore::searchableIndexIntroduction() { return "Searchable Index"; }
162 String WebCore::fileButtonChooseFileLabel() { return "Choose File"; }
163 String WebCore::fileButtonNoFileSelectedLabel() { return "No file selected"; }
165 int WebCore::findNextSentenceFromIndex(UChar const*, int, int, bool) { notImplemented(); return 0; }
166 void WebCore::findSentenceBoundary(UChar const*, int, int, int*, int*) { notImplemented(); }
167 int WebCore::findNextWordFromIndex(UChar const*, int, int, bool) { notImplemented(); return 0; }
168 void WebCore::findWordBoundary(UChar const* str, int len, int position, int* start, int* end) {*start = position; *end = position; notImplemented(); }
170 void Frame::setNeedsReapplyStyles() { notImplemented(); }
172 int WebCore::screenDepthPerComponent(const Page*) { notImplemented(); return 0; }
173 bool WebCore::screenIsMonochrome(const Page*) { notImplemented(); return false; }
175 void WebCore::setFocusRingColorChangeFunction(void (*)()) { notImplemented(); }
177 void FrameView::updateBorder() { notImplemented(); }
178 bool FrameView::passMousePressEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe) { return true; }
179 bool FrameView::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe) { return true; }
180 bool FrameView::passMouseReleaseEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe) { return true; }
181 bool FrameView::passWheelEventToSubframe(PlatformWheelEvent& e, Frame* subframe) { return false; }
182 bool FrameView::passMousePressEventToScrollbar(MouseEventWithHitTestResults& mev) { return false; }
184 bool AXObjectCache::gAccessibilityEnabled = false;
186 Vector<char> loadResourceIntoArray(const char*) { return Vector<char>(); }
188 PluginInfo* PlugInInfoStore::createPluginInfoForPluginAtIndex(unsigned) { notImplemented(); return 0; }
189 unsigned PlugInInfoStore::pluginCount() const { notImplemented(); return 0; }
190 bool WebCore::PlugInInfoStore::supportsMIMEType(const WebCore::String&) { return false; }
194 DeprecatedStringList supportedKeySizes() { notImplemented(); return DeprecatedStringList(); }
195 String signedPublicKeyAndChallengeString(unsigned keySizeIndex, const String &challengeString, const KURL &url) { return String(); }