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

Side by Side Diff: third_party/WebKit/public/web/WebDOMEvent.h

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 assign(e); 49 assign(e);
50 return *this; 50 return *this;
51 } 51 }
52 52
53 BLINK_EXPORT void reset(); 53 BLINK_EXPORT void reset();
54 BLINK_EXPORT void assign(const WebDOMEvent&); 54 BLINK_EXPORT void assign(const WebDOMEvent&);
55 55
56 bool isNull() const { return m_private.isNull(); } 56 bool isNull() const { return m_private.isNull(); }
57 57
58 #if BLINK_IMPLEMENTATION 58 #if BLINK_IMPLEMENTATION
59 WebDOMEvent(const RawPtr<Event>&); 59 WebDOMEvent(Event*);
60 operator Event*() const; 60 operator Event*() const;
61 #endif 61 #endif
62 62
63 template<typename T> T to() 63 template<typename T> T to()
64 { 64 {
65 T res; 65 T res;
66 res.WebDOMEvent::assign(*this); 66 res.WebDOMEvent::assign(*this);
67 return res; 67 return res;
68 } 68 }
69 69
70 template<typename T> const T toConst() const 70 template<typename T> const T toConst() const
71 { 71 {
72 T res; 72 T res;
73 res.WebDOMEvent::assign(*this); 73 res.WebDOMEvent::assign(*this);
74 return res; 74 return res;
75 } 75 }
76 76
77 protected: 77 protected:
78 #if BLINK_IMPLEMENTATION 78 #if BLINK_IMPLEMENTATION
79 void assign(const RawPtr<Event>&); 79 void assign(Event*);
80 80
81 template<typename T> T* unwrap() 81 template<typename T> T* unwrap()
82 { 82 {
83 return static_cast<T*>(m_private.get()); 83 return static_cast<T*>(m_private.get());
84 } 84 }
85 85
86 template<typename T> const T* constUnwrap() const 86 template<typename T> const T* constUnwrap() const
87 { 87 {
88 return static_cast<const T*>(m_private.get()); 88 return static_cast<const T*>(m_private.get());
89 } 89 }
90 #endif 90 #endif
91 91
92 WebPrivatePtr<Event> m_private; 92 WebPrivatePtr<Event> m_private;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif 97 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebDOMMediaStreamTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698