Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |