Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: third_party/WebKit/Source/core/clipboard/DataTransferItem.h

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 23 matching lines...) Expand all
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class Blob; 41 class Blob;
42 class DataObjectItem; 42 class DataObjectItem;
43 class DataTransfer; 43 class DataTransfer;
44 class ScriptState;
44 class StringCallback; 45 class StringCallback;
45 class ExecutionContext;
46 46
47 class CORE_EXPORT DataTransferItem final 47 class CORE_EXPORT DataTransferItem final
48 : public GarbageCollected<DataTransferItem>, 48 : public GarbageCollected<DataTransferItem>,
49 public ScriptWrappable { 49 public ScriptWrappable {
50 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
51 WTF_MAKE_NONCOPYABLE(DataTransferItem); 51 WTF_MAKE_NONCOPYABLE(DataTransferItem);
52 52
53 public: 53 public:
54 static DataTransferItem* create(DataTransfer*, DataObjectItem*); 54 static DataTransferItem* create(DataTransfer*, DataObjectItem*);
55 55
56 String kind() const; 56 String kind() const;
57 String type() const; 57 String type() const;
58 58
59 void getAsString(ExecutionContext*, StringCallback*) const; 59 void getAsString(ScriptState*, StringCallback*) const;
60 Blob* getAsFile() const; 60 Blob* getAsFile() const;
61 61
62 DataTransfer* getDataTransfer() { return m_dataTransfer.get(); } 62 DataTransfer* getDataTransfer() { return m_dataTransfer.get(); }
63 DataObjectItem* getDataObjectItem() { return m_item.get(); } 63 DataObjectItem* getDataObjectItem() { return m_item.get(); }
64 64
65 DECLARE_TRACE(); 65 DECLARE_TRACE();
66 66
67 private: 67 private:
68 DataTransferItem(DataTransfer*, DataObjectItem*); 68 DataTransferItem(DataTransfer*, DataObjectItem*);
69 69
70 Member<DataTransfer> m_dataTransfer; 70 Member<DataTransfer> m_dataTransfer;
71 Member<DataObjectItem> m_item; 71 Member<DataObjectItem> m_item;
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // DataTransferItem_h 76 #endif // DataTransferItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698