diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/platform/gtk/ClipboardGtk.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/platform/gtk/ClipboardGtk.h')
-rw-r--r-- | WebCore/platform/gtk/ClipboardGtk.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/WebCore/platform/gtk/ClipboardGtk.h b/WebCore/platform/gtk/ClipboardGtk.h index 3ad1049..b8b4ddf 100644 --- a/WebCore/platform/gtk/ClipboardGtk.h +++ b/WebCore/platform/gtk/ClipboardGtk.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2007, Holger Hans Peter Freyther * * Redistribution and use in source and binary forms, with or without @@ -36,9 +36,11 @@ namespace WebCore { // Created from the EventHandlerGtk to be used by the dom class ClipboardGtk : public Clipboard { public: - ClipboardGtk(ClipboardAccessPolicy, bool); - ~ClipboardGtk(); - + static PassRefPtr<ClipboardGtk> create(ClipboardAccessPolicy policy, bool isForDragging) + { + return adoptRef(new ClipboardGtk(policy, isForDragging)); + } + virtual ~ClipboardGtk(); void clearData(const String&); void clearAllData(); @@ -58,6 +60,9 @@ namespace WebCore { virtual void writeRange(Range*, Frame*); virtual bool hasData(); + + private: + ClipboardGtk(ClipboardAccessPolicy, bool); }; } |