Changeset 93573 in webkit
- Timestamp:
- Aug 22, 2011 7:05:48 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r93571 r93573 1 2011-08-22 Adam Barth <abarth@webkit.org> 2 3 Remove PLATFORM(ANDROID) 4 https://bugs.webkit.org/show_bug.cgi?id=66741 5 6 Reviewed by Darin Adler. 7 8 PLATFORM(CHROMIUM) && OS(ANDROID) is the new hotness. These special 9 cases can be removed now that Android shares more code with Chromium. 10 11 * bindings/js/JSDOMWindowBase.cpp: 12 (WebCore::JSDOMWindowBase::supportsRichSourceInfo): 13 * bindings/v8/ScriptCachedFrameData.cpp: 14 * bindings/v8/ScriptCachedFrameData.h: 15 * bindings/v8/V8GCController.cpp: 16 * bridge/jni/jsc/JavaInstanceJSC.cpp: 17 (JavaInstance::invokeMethod): 18 * history/HistoryItem.cpp: 19 (WebCore::HistoryItem::~HistoryItem): 20 (WebCore::HistoryItem::setDocumentState): 21 (WebCore::HistoryItem::clearDocumentState): 22 (WebCore::HistoryItem::setIsTargetItem): 23 (WebCore::HistoryItem::addChildItem): 24 (WebCore::HistoryItem::setFormInfoFromRequest): 25 * history/HistoryItem.h: 26 * loader/cache/CachedFont.cpp: 27 * platform/DragImage.h: 28 * platform/PlatformTouchEvent.h: 29 * platform/PlatformTouchPoint.h: 30 (WebCore::PlatformTouchPoint::PlatformTouchPoint): 31 * platform/Widget.h: 32 * platform/network/NetworkStateNotifier.cpp: 33 * platform/network/NetworkStateNotifier.h: 34 * platform/network/NetworkingContext.h: 35 * platform/network/ResourceHandle.h: 36 * platform/network/ResourceHandleInternal.h: 37 * platform/network/ResourceRequestBase.cpp: 38 1 39 2011-08-22 Adrienne Walker <enne@google.com> 2 40 -
trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
r92224 r93573 109 109 bool JSDOMWindowBase::supportsRichSourceInfo() const 110 110 { 111 #if PLATFORM(ANDROID) 112 return true; 113 #elif !ENABLE(JAVASCRIPT_DEBUGGER) || !ENABLE(INSPECTOR) 111 #if !ENABLE(JAVASCRIPT_DEBUGGER) || !ENABLE(INSPECTOR) 114 112 return false; 115 113 #else -
trunk/Source/WebCore/bindings/v8/ScriptCachedFrameData.cpp
r84371 r93573 27 27 #include "ScriptCachedFrameData.h" 28 28 29 #if PLATFORM( ANDROID) || PLATFORM(QT)29 #if PLATFORM(QT) 30 30 // FIXME: the right guard should be ENABLE(PAGE_CACHE). Replace with the right guard, once 31 31 // https://bugs.webkit.org/show_bug.cgi?id=35061 is fixed. … … 77 77 } // namespace WebCore 78 78 79 #endif // PLATFORM( ANDROID) || PLATFORM(QT)79 #endif // PLATFORM(QT) -
trunk/Source/WebCore/bindings/v8/ScriptCachedFrameData.h
r76251 r93573 52 52 } // namespace WebCore 53 53 54 #elif PLATFORM( ANDROID) || PLATFORM(QT)54 #elif PLATFORM(QT) 55 55 // FIXME: the right guard should be ENABLE(PAGE_CACHE). Replace with the right guard, once 56 56 // https://bugs.webkit.org/show_bug.cgi?id=35061 is fixed. -
trunk/Source/WebCore/bindings/v8/V8GCController.cpp
r93397 r93573 421 421 int getMemoryUsageInMB() 422 422 { 423 #if PLATFORM(CHROMIUM) || PLATFORM(ANDROID)423 #if PLATFORM(CHROMIUM) 424 424 return PlatformBridge::memoryUsageMB(); 425 425 #else … … 430 430 int getActualMemoryUsageInMB() 431 431 { 432 #if PLATFORM(CHROMIUM) || PLATFORM(ANDROID)432 #if PLATFORM(CHROMIUM) 433 433 return PlatformBridge::actualMemoryUsageMB(); 434 434 #else -
trunk/Source/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
r93059 r93573 214 214 } 215 215 216 // This is a deprecated code path which should not be required on Android.217 // Remove this guard once Bug 39476 is fixed.218 #if PLATFORM(ANDROID)219 if (!handled)220 result = callJNIMethod(m_instance->instance(), jMethod->returnType(), jMethod->name().utf8().data(), jMethod->signature(), jArgs.data());221 #endif222 223 216 switch (jMethod->returnType()) { 224 217 case JavaTypeVoid: -
trunk/Source/WebCore/history/HistoryItem.cpp
r88080 r93573 134 134 ASSERT(!m_cachedPage); 135 135 iconDatabase().releaseIconForPageURL(m_urlString); 136 #if PLATFORM(ANDROID)137 if (m_bridge)138 m_bridge->detachHistoryItem();139 #endif140 136 } 141 137 … … 436 432 { 437 433 m_documentState = state; 438 #if PLATFORM(ANDROID)439 notifyHistoryItemChanged(this);440 #endif441 434 } 442 435 … … 449 442 { 450 443 m_documentState.clear(); 451 #if PLATFORM(ANDROID)452 notifyHistoryItemChanged(this);453 #endif454 444 } 455 445 … … 462 452 { 463 453 m_isTargetItem = flag; 464 #if PLATFORM(ANDROID)465 notifyHistoryItemChanged(this);466 #endif467 454 } 468 455 … … 476 463 ASSERT(!childItemWithTarget(child->target())); 477 464 m_children.append(child); 478 #if PLATFORM(ANDROID)479 notifyHistoryItemChanged(this);480 #endif481 465 } 482 466 … … 622 606 m_formContentType = String(); 623 607 } 624 #if PLATFORM(ANDROID)625 notifyHistoryItemChanged(this);626 #endif627 608 } 628 609 -
trunk/Source/WebCore/history/HistoryItem.h
r86325 r93573 44 44 #endif 45 45 46 #if PLATFORM(ANDROID)47 #include "AndroidWebHistoryBridge.h"48 #endif49 50 46 namespace WebCore { 51 47 … … 203 199 #endif 204 200 205 #if PLATFORM(ANDROID)206 void setBridge(AndroidWebHistoryBridge* bridge);207 AndroidWebHistoryBridge* bridge() const;208 #endif209 210 201 #ifndef NDEBUG 211 202 int showTree() const; … … 296 287 #endif 297 288 298 #if PLATFORM(ANDROID)299 RefPtr<AndroidWebHistoryBridge> m_bridge;300 #endif301 302 289 }; //class HistoryItem 303 290 -
trunk/Source/WebCore/loader/cache/CachedFont.cpp
r90167 r93573 29 29 30 30 // FIXME: This should really be a blacklist instead of a whitelist 31 #if USE(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (!OS(DARWIN) || USE(SKIA_ON_MAC_CHROMIUM))) || PLATFORM(HAIKU) || OS(WINCE) || PLATFORM( ANDROID) || PLATFORM(BREWMP)31 #if USE(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (!OS(DARWIN) || USE(SKIA_ON_MAC_CHROMIUM))) || PLATFORM(HAIKU) || OS(WINCE) || PLATFORM(BREWMP) 32 32 #define STORE_FONT_CUSTOM_PLATFORM_DATA 33 33 #endif -
trunk/Source/WebCore/platform/DragImage.h
r86433 r93573 81 81 #elif PLATFORM(BREWMP) 82 82 typedef IImage* DragImageRef; 83 #elif PLATFORM(EFL) || PLATFORM(ANDROID)83 #elif PLATFORM(EFL) 84 84 typedef void* DragImageRef; 85 85 #endif -
trunk/Source/WebCore/platform/PlatformTouchEvent.h
r81685 r93573 32 32 #endif 33 33 34 #if PLATFORM(ANDROID)35 #include "IntPoint.h"36 #endif37 38 34 #if PLATFORM(BREWMP) 39 35 typedef unsigned short uint16; … … 67 63 #if PLATFORM(QT) 68 64 PlatformTouchEvent(QTouchEvent*); 69 #elif PLATFORM(ANDROID)70 PlatformTouchEvent(const Vector<int>&, const Vector<IntPoint>&, TouchEventType, const Vector<PlatformTouchPoint::State>&, int metaState);71 65 #elif PLATFORM(BREWMP) 72 66 PlatformTouchEvent(AEEEvent, uint16 wParam, uint32 dwParam); -
trunk/Source/WebCore/platform/PlatformTouchPoint.h
r89212 r93573 48 48 PlatformTouchPoint(const QTouchEvent::TouchPoint&); 49 49 PlatformTouchPoint() {}; 50 #elif PLATFORM(ANDROID)51 PlatformTouchPoint(unsigned id, const IntPoint& windowPos, State);52 50 #elif PLATFORM(BREWMP) 53 51 PlatformTouchPoint(int id, const IntPoint& windowPos, State); -
trunk/Source/WebCore/platform/Widget.h
r90734 r93573 95 95 #endif 96 96 97 #if PLATFORM(ANDROID)98 class WebCoreViewBridge;99 typedef WebCoreViewBridge* PlatformWidget;100 #endif101 102 97 #if PLATFORM(QT) 103 98 class QWebPageClient; -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.cpp
r91255 r93573 47 47 } 48 48 49 #if PLATFORM( ANDROID) || PLATFORM(CHROMIUM) || PLATFORM(EFL)49 #if PLATFORM(CHROMIUM) || PLATFORM(EFL) 50 50 void NetworkStateNotifier::setOnLine(bool onLine) 51 51 { … … 58 58 m_networkStateChangedFunction(); 59 59 } 60 #endif // PLATFORM( ANDROID) || PLATFORM(CHROMIM)60 #endif // PLATFORM(CHROMIUM) || PLATFORM(EFL) 61 61 62 62 } -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.h
r91255 r93573 69 69 #if (PLATFORM(QT) && USE(QT_BEARER)) 70 70 void setNetworkAccessAllowed(bool); 71 #elif PLATFORM( ANDROID) || PLATFORM(CHROMIUM) || PLATFORM(EFL)71 #elif PLATFORM(CHROMIUM) || PLATFORM(EFL) 72 72 void setOnLine(bool); 73 #endif74 75 #if PLATFORM(ANDROID)76 void networkStateChange(bool online) { setOnLine(online); }77 73 #endif 78 74 -
trunk/Source/WebCore/platform/network/NetworkingContext.h
r84057 r93573 36 36 namespace WebCore { 37 37 38 #if PLATFORM(ANDROID)39 class FrameLoaderClient;40 class MainResourceLoader;41 #endif42 38 class ResourceError; 43 39 class ResourceRequest; … … 68 64 #endif 69 65 70 #if PLATFORM(ANDROID)71 virtual MainResourceLoader* mainResourceLoader() const = 0;72 virtual FrameLoaderClient* frameLoaderClient() const = 0;73 #endif74 75 66 protected: 76 67 NetworkingContext() { } -
trunk/Source/WebCore/platform/network/ResourceHandle.h
r91799 r93573 168 168 #endif 169 169 170 #if PLATFORM(QT) || USE(CURL) || USE(SOUP) || PLATFORM(ANDROID)170 #if PLATFORM(QT) || USE(CURL) || USE(SOUP) 171 171 ResourceHandleInternal* getInternal() { return d.get(); } 172 172 #endif -
trunk/Source/WebCore/platform/network/ResourceHandleInternal.h
r92271 r93573 71 71 #endif 72 72 73 #if PLATFORM(ANDROID)74 #include "ResourceLoaderAndroid.h"75 #endif76 77 73 // The allocations and releases in ResourceHandleInternal are 78 74 // Cocoa-exception-free (either simple Foundation classes or … … 215 211 NSURLAuthenticationChallenge *m_currentMacChallenge; 216 212 #endif 217 #if PLATFORM(ANDROID)218 RefPtr<ResourceLoaderAndroid> m_loader;219 #endif220 213 AuthenticationChallenge m_currentWebChallenge; 221 214 -
trunk/Source/WebCore/platform/network/ResourceRequestBase.cpp
r92399 r93573 444 444 } 445 445 446 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(CHROMIUM) && !PLATFORM( ANDROID) && !PLATFORM(QT)446 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(CHROMIUM) && !PLATFORM(QT) 447 447 unsigned initializeMaximumHTTPConnectionCountPerHost() 448 448 {
Note: See TracChangeset
for help on using the changeset viewer.