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

Unified Diff: Source/wtf/GetPtr.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/CustomEventTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/GetPtr.h
diff --git a/Source/wtf/GetPtr.h b/Source/wtf/GetPtr.h
index a0f7c62f8b891f34a8cd3542a273a6b6e0f13e83..dc431c76ac38862809c4cbbf9059ba0649d5679d 100644
--- a/Source/wtf/GetPtr.h
+++ b/Source/wtf/GetPtr.h
@@ -21,6 +21,8 @@
#ifndef WTF_GetPtr_h
#define WTF_GetPtr_h
+#include "wtf/RawPtr.h"
+
namespace WTF {
template <typename T> inline T* getPtr(T* p)
@@ -33,6 +35,11 @@ namespace WTF {
return &p;
}
+ template <typename T> inline T* getPtr(RawPtr<T> p)
+ {
+ return p.get();
+ }
+
} // namespace WTF
#endif // WTF_GetPtr_h
« no previous file with comments | « Source/web/tests/CustomEventTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698