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/win/ClipboardWin.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/win/ClipboardWin.h')
-rw-r--r-- | WebCore/platform/win/ClipboardWin.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/WebCore/platform/win/ClipboardWin.h b/WebCore/platform/win/ClipboardWin.h index 0d6e448..01f7332 100644 --- a/WebCore/platform/win/ClipboardWin.h +++ b/WebCore/platform/win/ClipboardWin.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,10 +26,8 @@ #ifndef ClipboardWin_h #define ClipboardWin_h -#include "Clipboard.h" - #include "CachedResourceClient.h" -#include "IntPoint.h" +#include "Clipboard.h" #include "COMPtr.h" struct IDataObject; @@ -43,8 +41,14 @@ namespace WebCore { // State available during IE's events for drag and drop and copy/paste class ClipboardWin : public Clipboard, public CachedResourceClient { public: - ClipboardWin(bool isForDragging, IDataObject* dataObject, ClipboardAccessPolicy policy); - ClipboardWin(bool isForDragging, WCDataObject* dataObject, ClipboardAccessPolicy policy); + static PassRefPtr<ClipboardWin> create(bool isForDragging, IDataObject* dataObject, ClipboardAccessPolicy policy) + { + return adoptRef(new ClipboardWin(isForDragging, dataObject, policy)); + } + static PassRefPtr<ClipboardWin> create(bool isForDragging, WCDataObject* dataObject, ClipboardAccessPolicy policy) + { + return adoptRef(new ClipboardWin(isForDragging, dataObject, policy)); + } ~ClipboardWin(); void clearData(const String& type); @@ -66,9 +70,14 @@ namespace WebCore { virtual bool hasData(); COMPtr<IDataObject> dataObject() { return m_dataObject; } + private: + ClipboardWin(bool isForDragging, IDataObject*, ClipboardAccessPolicy); + ClipboardWin(bool isForDragging, WCDataObject*, ClipboardAccessPolicy); + void resetFromClipboard(); void setDragImage(CachedImage*, Node*, const IntPoint&); + COMPtr<IDataObject> m_dataObject; COMPtr<WCDataObject> m_writableDataObject; Frame* m_frame; |