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

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

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 BLINK_EXPORT bool isMessageEvent() const; 85 BLINK_EXPORT bool isMessageEvent() const;
86 BLINK_EXPORT bool isWheelEvent() const; 86 BLINK_EXPORT bool isWheelEvent() const;
87 BLINK_EXPORT bool isBeforeTextInsertedEvent() const; 87 BLINK_EXPORT bool isBeforeTextInsertedEvent() const;
88 BLINK_EXPORT bool isOverflowEvent() const; 88 BLINK_EXPORT bool isOverflowEvent() const;
89 BLINK_EXPORT bool isPageTransitionEvent() const; 89 BLINK_EXPORT bool isPageTransitionEvent() const;
90 BLINK_EXPORT bool isPopStateEvent() const; 90 BLINK_EXPORT bool isPopStateEvent() const;
91 BLINK_EXPORT bool isProgressEvent() const; 91 BLINK_EXPORT bool isProgressEvent() const;
92 BLINK_EXPORT bool isXMLHttpRequestProgressEvent() const; 92 BLINK_EXPORT bool isXMLHttpRequestProgressEvent() const;
93 93
94 #if BLINK_IMPLEMENTATION 94 #if BLINK_IMPLEMENTATION
95 WebDOMEvent(const WTF::PassRefPtr<WebCore::Event>&); 95 WebDOMEvent(const PassRefPtrWillBeRawPtr<WebCore::Event>&);
96 operator WTF::PassRefPtr<WebCore::Event>() const; 96 PassRefPtrWillBeRawPtr<WebCore::Event> getValue() const;
sof 2014/03/28 12:32:09 Unused?
haraken 2014/03/28 14:02:14 It's used in Source/web/ in this CL.
sof 2014/03/28 14:41:02 Oh, so it is. Sorry about the noise.
97 #endif 97 #endif
98 98
99 template<typename T> T to() 99 template<typename T> T to()
100 { 100 {
101 T res; 101 T res;
102 res.WebDOMEvent::assign(*this); 102 res.WebDOMEvent::assign(*this);
103 return res; 103 return res;
104 } 104 }
105 105
106 template<typename T> const T toConst() const 106 template<typename T> const T toConst() const
(...skipping 18 matching lines...) Expand all
125 return static_cast<const T*>(m_private.get()); 125 return static_cast<const T*>(m_private.get());
126 } 126 }
127 #endif 127 #endif
128 128
129 WebPrivatePtr<WebDOMEventPrivate> m_private; 129 WebPrivatePtr<WebDOMEventPrivate> m_private;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif 134 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698