OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebDragData_h | 31 #ifndef WebDragData_h |
32 #define WebDragData_h | 32 #define WebDragData_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebData.h" | 35 #include "WebData.h" |
36 #include "WebString.h" | 36 #include "WebString.h" |
37 #include "WebURL.h" | 37 #include "WebURL.h" |
38 | 38 |
39 namespace WebCore { class DataObject; } | 39 namespace blink { class DataObject; } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class WebDragDataPrivate; | 43 class WebDragDataPrivate; |
44 template <typename T> class WebVector; | 44 template <typename T> class WebVector; |
45 | 45 |
46 // Holds data that may be exchanged through a drag-n-drop operation. It is | 46 // Holds data that may be exchanged through a drag-n-drop operation. It is |
47 // inexpensive to copy a WebDragData object. | 47 // inexpensive to copy a WebDragData object. |
48 class WebDragData { | 48 class WebDragData { |
49 public: | 49 public: |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 BLINK_EXPORT void assign(const WebDragData&); | 102 BLINK_EXPORT void assign(const WebDragData&); |
103 | 103 |
104 BLINK_EXPORT WebVector<Item> items() const; | 104 BLINK_EXPORT WebVector<Item> items() const; |
105 BLINK_EXPORT void setItems(const WebVector<Item>&); | 105 BLINK_EXPORT void setItems(const WebVector<Item>&); |
106 BLINK_EXPORT void addItem(const Item&); | 106 BLINK_EXPORT void addItem(const Item&); |
107 | 107 |
108 BLINK_EXPORT WebString filesystemId() const; | 108 BLINK_EXPORT WebString filesystemId() const; |
109 BLINK_EXPORT void setFilesystemId(const WebString&); | 109 BLINK_EXPORT void setFilesystemId(const WebString&); |
110 | 110 |
111 #if BLINK_IMPLEMENTATION | 111 #if BLINK_IMPLEMENTATION |
112 explicit WebDragData(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&); | 112 explicit WebDragData(const PassRefPtrWillBeRawPtr<blink::DataObject>&); |
113 WebDragData& operator=(const PassRefPtrWillBeRawPtr<WebCore::DataObject>&); | 113 WebDragData& operator=(const PassRefPtrWillBeRawPtr<blink::DataObject>&); |
114 WebCore::DataObject* getValue() const; | 114 blink::DataObject* getValue() const; |
115 #endif | 115 #endif |
116 | 116 |
117 private: | 117 private: |
118 void ensureMutable(); | 118 void ensureMutable(); |
119 WebPrivatePtr<WebCore::DataObject> m_private; | 119 WebPrivatePtr<blink::DataObject> m_private; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
123 | 123 |
124 #endif | 124 #endif |
OLD | NEW |