summaryrefslogtreecommitdiffstats
path: root/webkit/port/platform
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 13:48:25 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 13:48:25 +0000
commitc8e5341e7e90be48182c0435462c9afd7780d898 (patch)
treecfd798a9e53c257618dc7ea4f027499b0b9a4748 /webkit/port/platform
parent34659e40537fb8b36983cad7bf3a1b77ae13703b (diff)
downloadchromium_src-c8e5341e7e90be48182c0435462c9afd7780d898.zip
chromium_src-c8e5341e7e90be48182c0435462c9afd7780d898.tar.gz
chromium_src-c8e5341e7e90be48182c0435462c9afd7780d898.tar.bz2
Stub out writing to the pasteboard. Ends up calling NSAttributedString initWithHTML which tries to load the system WebKit...and then EPIC FAIL. Helps the layout tests not time out so much until we think about this more.
Review URL: http://codereview.chromium.org/7623 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/platform')
-rw-r--r--webkit/port/platform/mac/PasteboardMac.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/port/platform/mac/PasteboardMac.mm b/webkit/port/platform/mac/PasteboardMac.mm
index 9b87314..49faff7 100644
--- a/webkit/port/platform/mac/PasteboardMac.mm
+++ b/webkit/port/platform/mac/PasteboardMac.mm
@@ -139,6 +139,15 @@ static NSAttributedString *stripAttachmentCharacters(NSAttributedString *string)
void Pasteboard::writeSelection(NSPasteboard* pasteboard, Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
{
+#if 0
+// TODO(pinkerton): We need to figure out how to get copy/paste info back
+// to the main process and let it manage the pasteboard. One major problem is
+// that we can't rely on -[NSAttributedString initWithHTML] since it calls
+// the system WebKit and that wrecks havoc with ObjC's single-level
+// namespace. That will cause some big problems getting rtf strings
+// onto the pasteboard since we have no other way of creating that data
+// ourselves. Punt for now.
+
if (WebArchivePboardType == nil)
Pasteboard::generalPasteboard(); //Initialises pasteboard types
ASSERT(selectedRange);
@@ -209,6 +218,7 @@ void Pasteboard::writeSelection(NSPasteboard* pasteboard, Range* selectedRange,
if ([types containsObject:WebSmartPastePboardType]) {
[pasteboard setData:nil forType:WebSmartPastePboardType];
}
+#endif
}
void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)