Remove HIWebView in 64-bit.
Also disable a few calls that are now gone in 64-bit and filed these bugs:
<rdar://problem/
5311653> WebKit needs to adopt HIGetMousePosition where we used GetGlobalMouse before
<rdar://problem/
5311648> WebKit needs to move off of CopyEvent in WebBaseNetscapePluginView
<rdar://problem/
5311640> WebKit needs a new solution for HISearchWindowShow on 64-bit
* Carbon/CarbonUtils.m:
* Carbon/CarbonWindowAdapter.m:
* Carbon/CarbonWindowContentView.m:
* Carbon/CarbonWindowFrame.m:
* Carbon/HIViewAdapter.m:
(SetViewNeedsDisplay):
* Carbon/HIWebView.m:
(Draw):
(SyncFrame):
* Configurations/WebKit.xcconfig:
* Plugins/WebBaseNetscapePluginView.mm:
(+[WebBaseNetscapePluginView getCarbonEvent:]):
(TSMEventHandler):
* WebKit.LP64.exp: Added.
* WebView/WebView.mm:
(-[WebView _searchWithSpotlightFromMenu:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23977
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __LP64__
+
#include "CarbonUtils.h"
#import <WebKitSystemInterface.h>
return image;
}
+#endif
// Some things would have to be made public if someone wanted to subclass this so as to support more menu item commands. M.P. Warning - 9/19/00
+#ifndef __LP64__
+
#import "CarbonWindowAdapter.h"
#import "CarbonWindowFrame.h"
}
@end // implementation CarbonWindowAdapter
+
+#endif
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __LP64__
+
#import "CarbonWindowContentView.h"
@implementation CarbonWindowContentView
@end
+
+#endif
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __LP64__
+
#import "CarbonWindowFrame.h"
#import "CarbonWindowAdapter.h"
#import "CarbonWindowContentView.h"
@end // implementation NSCarbonWindowFrame
+
+#endif
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __LP64__
+
#import "HIViewAdapter.h"
#import <objc/objc.h>
#endif
HIViewSetNeedsDisplayInRegion(inHIView, inRegion, inNeedsDisplay);
} else {
-#ifndef __LP64__
Rect bounds, cntlBounds;
GrafPtr port, savePort;
Rect portBounds;
SetOrigin(portBounds.left, portBounds.top);
SetPort(savePort);
-#endif
}
}
+
+#endif
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __LP64__
+
#include "HIWebView.h"
#include "CarbonWindowAdapter.h"
HIRect hiRect;
bool createdContext = false;
-#ifndef __LP64__
if (!inView->fIsComposited)
{
GrafPtr port;
CGContextScaleCTM( inContext, 1, -1 );
createdContext = true;
}
-#endif
HIViewGetBounds( inView->fViewRef, &bounds );
[inView->fWebView setFrameOrigin: origin];
[inView->fWebView setFrameSize: *(NSSize*)&frame.size];
}
-#ifndef __LP64__
else
{
GrafPtr port = GetWindowPort( GetControlOwner( inView->fViewRef ) );
[inView->fWebView setFrameOrigin: *(NSPoint*)&frame.origin];
[inView->fWebView setFrameSize: *(NSSize*)&frame.size];
}
-#endif
}
}
}
-#ifdef __LP64__
-static void StartUpdateObserver(HIWebView* view) {};
-static void StopUpdateObserver(HIWebView* view) {};
-#else
static void UpdateObserver(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info);
static void
DisposeRgn( region );
}
}
+
#endif
+2007-07-03 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by Darin.
+
+ Remove HIWebView in 64-bit.
+
+ Also disable a few calls that are now gone in 64-bit and filed these bugs:
+
+ <rdar://problem/5311653> WebKit needs to adopt HIGetMousePosition where we used GetGlobalMouse before
+ <rdar://problem/5311648> WebKit needs to move off of CopyEvent in WebBaseNetscapePluginView
+ <rdar://problem/5311640> WebKit needs a new solution for HISearchWindowShow on 64-bit
+
+ * Carbon/CarbonUtils.m:
+ * Carbon/CarbonWindowAdapter.m:
+ * Carbon/CarbonWindowContentView.m:
+ * Carbon/CarbonWindowFrame.m:
+ * Carbon/HIViewAdapter.m:
+ (SetViewNeedsDisplay):
+ * Carbon/HIWebView.m:
+ (Draw):
+ (SyncFrame):
+ * Configurations/WebKit.xcconfig:
+ * Plugins/WebBaseNetscapePluginView.mm:
+ (+[WebBaseNetscapePluginView getCarbonEvent:]):
+ (TSMEventHandler):
+ * WebKit.LP64.exp: Added.
+ * WebView/WebView.mm:
+ (-[WebView _searchWithSpotlightFromMenu:]):
+
2007-07-03 Adam Roben <aroben@apple.com>
Merge the Windows and Mac localized strings and exceptions files
#include "Version.xcconfig"
-EXPORTED_SYMBOLS_FILE = WebKit.exp;
+EXPORTED_SYMBOLS_FILE = $(EXPORTED_SYMBOLS_FILE_$(CURRENT_ARCH));
+EXPORTED_SYMBOLS_FILE_ = WebKit.exp;
+EXPORTED_SYMBOLS_FILE_i386 = WebKit.exp;
+EXPORTED_SYMBOLS_FILE_ppc = WebKit.exp;
+EXPORTED_SYMBOLS_FILE_ppc64 = WebKit.LP64.exp;
+EXPORTED_SYMBOLS_FILE_x86_64 = WebKit.LP64.exp;
FEATURE_DEFINES = ENABLE_SVG ENABLE_XPATH ENABLE_XSLT;
FRAMEWORK_SEARCH_PATHS = $(UMBRELLA_FRAMEWORKS_DIR) $(SYSTEM_LIBRARY_DIR)/Frameworks/ApplicationServices.framework/Frameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Frameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/Quartz.framework/Frameworks $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(FRAMEWORK_SEARCH_PATHS);
GCC_PREFIX_HEADER = WebKitPrefix.h;
carbonEvent->what = nullEvent;
carbonEvent->message = 0;
carbonEvent->when = TickCount();
+#ifdef __LP64__
+ // FIXME: we need to adopt the new HIGetMousePosition() here and remove GetGlobalMouse <rdar://problem/5311653>
+ carbonEvent->where.h = 0;
+ carbonEvent->where.v = 0;
+#else
GetGlobalMouse(&carbonEvent->where);
carbonEvent->where.h = static_cast<short>(carbonEvent->where.h * HIGetScaleFactor());
carbonEvent->where.v = static_cast<short>(carbonEvent->where.v * HIGetScaleFactor());
+#endif
carbonEvent->modifiers = GetCurrentKeyModifiers();
if (!Button())
carbonEvent->modifiers |= btnState;
static OSStatus TSMEventHandler(EventHandlerCallRef inHandlerRef, EventRef inEvent, void *pluginView)
{
+#ifndef __LP64__
+ // FIXME: CopyEvent is gone in 64-bit, this function needs to not use it <rdar://problem/5311648>
+
EventRef rawKeyEventRef;
OSStatus status = GetEventParameter(inEvent, kEventParamTextInputSendKeyboardEvent, typeEventRef, NULL, sizeof(EventRef), NULL, &rawKeyEventRef);
if (status != noErr) {
ReleaseEvent(cloneEvent);
free(buffer);
+#endif
+
return noErr;
}
--- /dev/null
+.objc_class_name_WebArchive
+.objc_class_name_WebBackForwardList
+.objc_class_name_WebBaseNetscapePluginView
+.objc_class_name_WebCache
+.objc_class_name_WebCoreScrollView
+.objc_class_name_WebCoreStatistics
+.objc_class_name_WebDataSource
+.objc_class_name_WebDefaultPolicyDelegate
+.objc_class_name_WebDownload
+.objc_class_name_WebDynamicScrollBarsView
+.objc_class_name_WebFormDelegate
+.objc_class_name_WebFrame
+.objc_class_name_WebFrameView
+.objc_class_name_WebHTMLRepresentation
+.objc_class_name_WebHTMLView
+.objc_class_name_WebHistory
+.objc_class_name_WebHistoryItem
+.objc_class_name_WebIconDatabase
+.objc_class_name_WebInspector
+.objc_class_name_WebJavaScriptTextInputPanel
+.objc_class_name_WebKeyGenerator
+.objc_class_name_WebKitStatistics
+.objc_class_name_WebPanelAuthenticationHandler
+.objc_class_name_WebPluginDatabase
+.objc_class_name_WebPreferences
+.objc_class_name_WebRenderNode
+.objc_class_name_WebResource
+.objc_class_name_WebScriptCallFrame
+.objc_class_name_WebStringTruncator
+.objc_class_name_WebURLsWithTitles
+.objc_class_name_WebView
+_WebActionButtonKey
+_WebActionElementKey
+_WebActionModifierFlagsKey
+_WebActionNavigationTypeKey
+_WebActionOriginalURLKey
+_WebArchivePboardType
+_WebElementDOMNodeKey
+_WebElementFrameKey
+_WebElementImageAltStringKey
+_WebElementImageKey
+_WebElementImageRectKey
+_WebElementImageURLKey
+_WebElementIsSelectedKey
+_WebElementLinkIsLiveKey
+_WebElementLinkLabelKey
+_WebElementLinkTargetFrameKey
+_WebElementLinkTitleKey
+_WebElementLinkURLKey
+_WebHistoryAllItemsRemovedNotification
+_WebHistoryItemChangedNotification
+_WebHistoryItemsAddedNotification
+_WebHistoryItemsDiscardedWhileLoadingNotification
+_WebHistoryItemsKey
+_WebHistoryItemsRemovedNotification
+_WebHistoryLoadedNotification
+_WebHistorySavedNotification
+_WebIconDatabaseDidAddIconNotification
+_WebIconDatabaseDidRemoveAllIconsNotification
+_WebIconDatabaseDirectoryDefaultsKey
+_WebIconDatabaseImportDirectoryDefaultsKey
+_WebIconLargeSize
+_WebIconMediumSize
+_WebIconNotificationUserInfoURLKey
+_WebIconSmallSize
+_WebKitErrorDomain
+_WebKitErrorMIMETypeKey
+_WebKitErrorPlugInNameKey
+_WebKitErrorPlugInPageURLStringKey
+_WebLocalizedString
+_WebMainResourceKey
+_WebPlugInAttributesKey
+_WebPlugInBaseURLKey
+_WebPlugInContainerKey
+_WebPlugInContainingElementKey
+_WebPlugInModeKey
+_WebPlugInShouldLoadMainResourceKey
+_WebPluginWillPresentNativeUserInterfaceNotification
+_WebPreferencesChangedNotification
+_WebReportAssertionFailure
+_WebReportError
+_WebScriptDebugServerDidLoadNotification
+_WebScriptDebugServerProcessBundleIdentifierKey
+_WebScriptDebugServerProcessIdentifierKey
+_WebScriptDebugServerProcessNameKey
+_WebScriptDebugServerQueryNotification
+_WebScriptDebugServerQueryReplyNotification
+_WebScriptDebugServerWillUnloadNotification
+_WebScriptErrorDescriptionKey
+_WebScriptErrorDomain
+_WebScriptErrorLineNumberKey
+_WebURLNamePboardType
+_WebURLPboardType
+_WebViewDidBeginEditingNotification
+_WebViewDidChangeNotification
+_WebViewDidChangeSelectionNotification
+_WebViewDidChangeTypingStyleNotification
+_WebViewDidEndEditingNotification
+_WebViewProgressEstimateChangedNotification
+_WebViewProgressFinishedNotification
+_WebViewProgressStartedNotification
return;
}
+#ifndef __LP64__
+ // FIXME: we need a new function that works in 64-bit <rdar://problem/5311640>
(void)HISearchWindowShow((CFStringRef)selectedString, kNilOptions);
+#endif
}
// Slightly funky method that lets us have one copy of the logic for finding docViews that can do