summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/Pasteboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/Pasteboard.h')
-rw-r--r--Source/WebCore/platform/Pasteboard.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/WebCore/platform/Pasteboard.h b/Source/WebCore/platform/Pasteboard.h
index 8e5f91bb8..17dadd072 100644
--- a/Source/WebCore/platform/Pasteboard.h
+++ b/Source/WebCore/platform/Pasteboard.h
@@ -29,14 +29,14 @@
#include <wtf/Forward.h>
#include <wtf/HashSet.h>
#include <wtf/Noncopyable.h>
-
+#include <wtf/text/WTFString.h>
#if PLATFORM(MAC)
#include <wtf/RetainPtr.h>
#endif
-
#if PLATFORM(GTK)
#include <PasteboardHelper.h>
#endif
+#include <wtf/Vector.h>
// FIXME: This class is too high-level to be in the platform directory, since it
// uses the DOM and makes calls to Editor. It should either be divested of its
@@ -60,11 +60,11 @@ typedef struct HWND__* HWND;
namespace WebCore {
#if PLATFORM(MAC)
-extern NSString *WebArchivePboardType;
-extern NSString *WebSmartPastePboardType;
-extern NSString *WebURLNamePboardType;
-extern NSString *WebURLPboardType;
-extern NSString *WebURLsWithTitlesPboardType;
+extern const char* WebArchivePboardType;
+extern const char* WebSmartPastePboardType;
+extern const char* WebURLNamePboardType;
+extern const char* WebURLPboardType;
+extern const char* WebURLsWithTitlesPboardType;
#endif
class Clipboard;
@@ -81,7 +81,7 @@ class Pasteboard {
public:
#if PLATFORM(MAC)
// This is required to support OS X services.
- void writeSelectionForTypes(NSArray* pasteboardTypes, Range* selectedRange, bool canSmartCopyOrDelete, Frame*);
+ void writeSelectionForTypes(const Vector<String>& pasteboardTypes, Range* selectedRange, bool canSmartCopyOrDelete, Frame*);
Pasteboard(const String& pasteboardName);
#endif
@@ -109,7 +109,7 @@ private:
Pasteboard();
#if PLATFORM(MAC)
- RetainPtr<NSPasteboard> m_pasteboard;
+ String m_pasteboardName;
#endif
#if PLATFORM(WIN)