| 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 30 matching lines...) Expand all Loading... |
| 41 void WebDOMEvent::reset() | 41 void WebDOMEvent::reset() |
| 42 { | 42 { |
| 43 assign(nullptr); | 43 assign(nullptr); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void WebDOMEvent::assign(const WebDOMEvent& other) | 46 void WebDOMEvent::assign(const WebDOMEvent& other) |
| 47 { | 47 { |
| 48 m_private = other.m_private; | 48 m_private = other.m_private; |
| 49 } | 49 } |
| 50 | 50 |
| 51 void WebDOMEvent::assign(const PassRefPtrWillBeRawPtr<blink::Event>& event) | 51 void WebDOMEvent::assign(const PassRefPtrWillBeRawPtr<Event>& event) |
| 52 { | 52 { |
| 53 m_private = event; | 53 m_private = event; |
| 54 } | 54 } |
| 55 | 55 |
| 56 WebDOMEvent::WebDOMEvent(const PassRefPtrWillBeRawPtr<blink::Event>& event) | 56 WebDOMEvent::WebDOMEvent(const PassRefPtrWillBeRawPtr<Event>& event) |
| 57 : m_private(event) | 57 : m_private(event) |
| 58 { | 58 { |
| 59 } | 59 } |
| 60 | 60 |
| 61 WebDOMEvent::operator PassRefPtrWillBeRawPtr<blink::Event>() const | 61 WebDOMEvent::operator PassRefPtrWillBeRawPtr<Event>() const |
| 62 { | 62 { |
| 63 return m_private.get(); | 63 return m_private.get(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 WebString WebDOMEvent::type() const | 66 WebString WebDOMEvent::type() const |
| 67 { | 67 { |
| 68 ASSERT(m_private.get()); | 68 ASSERT(m_private.get()); |
| 69 return m_private->type(); | 69 return m_private->type(); |
| 70 } | 70 } |
| 71 | 71 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 bool WebDOMEvent::isKeyboardEvent() const | 114 bool WebDOMEvent::isKeyboardEvent() const |
| 115 { | 115 { |
| 116 ASSERT(m_private.get()); | 116 ASSERT(m_private.get()); |
| 117 return m_private->isKeyboardEvent(); | 117 return m_private->isKeyboardEvent(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 bool WebDOMEvent::isMutationEvent() const | 120 bool WebDOMEvent::isMutationEvent() const |
| 121 { | 121 { |
| 122 ASSERT(m_private.get()); | 122 ASSERT(m_private.get()); |
| 123 return m_private->hasInterface(blink::EventNames::MutationEvent); | 123 return m_private->hasInterface(EventNames::MutationEvent); |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool WebDOMEvent::isTextEvent() const | 126 bool WebDOMEvent::isTextEvent() const |
| 127 { | 127 { |
| 128 ASSERT(m_private.get()); | 128 ASSERT(m_private.get()); |
| 129 return m_private->hasInterface(blink::EventNames::TextEvent); | 129 return m_private->hasInterface(EventNames::TextEvent); |
| 130 } | 130 } |
| 131 | 131 |
| 132 bool WebDOMEvent::isCompositionEvent() const | 132 bool WebDOMEvent::isCompositionEvent() const |
| 133 { | 133 { |
| 134 ASSERT(m_private.get()); | 134 ASSERT(m_private.get()); |
| 135 return m_private->hasInterface(blink::EventNames::CompositionEvent); | 135 return m_private->hasInterface(EventNames::CompositionEvent); |
| 136 } | 136 } |
| 137 | 137 |
| 138 bool WebDOMEvent::isDragEvent() const | 138 bool WebDOMEvent::isDragEvent() const |
| 139 { | 139 { |
| 140 ASSERT(m_private.get()); | 140 ASSERT(m_private.get()); |
| 141 return m_private->isDragEvent(); | 141 return m_private->isDragEvent(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 bool WebDOMEvent::isClipboardEvent() const | 144 bool WebDOMEvent::isClipboardEvent() const |
| 145 { | 145 { |
| 146 ASSERT(m_private.get()); | 146 ASSERT(m_private.get()); |
| 147 return m_private->isClipboardEvent(); | 147 return m_private->isClipboardEvent(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 bool WebDOMEvent::isMessageEvent() const | 150 bool WebDOMEvent::isMessageEvent() const |
| 151 { | 151 { |
| 152 ASSERT(m_private.get()); | 152 ASSERT(m_private.get()); |
| 153 return m_private->hasInterface(blink::EventNames::MessageEvent); | 153 return m_private->hasInterface(EventNames::MessageEvent); |
| 154 } | 154 } |
| 155 | 155 |
| 156 bool WebDOMEvent::isWheelEvent() const | 156 bool WebDOMEvent::isWheelEvent() const |
| 157 { | 157 { |
| 158 ASSERT(m_private.get()); | 158 ASSERT(m_private.get()); |
| 159 return m_private->hasInterface(blink::EventNames::WheelEvent); | 159 return m_private->hasInterface(EventNames::WheelEvent); |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool WebDOMEvent::isBeforeTextInsertedEvent() const | 162 bool WebDOMEvent::isBeforeTextInsertedEvent() const |
| 163 { | 163 { |
| 164 ASSERT(m_private.get()); | 164 ASSERT(m_private.get()); |
| 165 return m_private->isBeforeTextInsertedEvent(); | 165 return m_private->isBeforeTextInsertedEvent(); |
| 166 } | 166 } |
| 167 | 167 |
| 168 bool WebDOMEvent::isOverflowEvent() const | 168 bool WebDOMEvent::isOverflowEvent() const |
| 169 { | 169 { |
| 170 ASSERT(m_private.get()); | 170 ASSERT(m_private.get()); |
| 171 return m_private->hasInterface(blink::EventNames::OverflowEvent); | 171 return m_private->hasInterface(EventNames::OverflowEvent); |
| 172 } | 172 } |
| 173 | 173 |
| 174 bool WebDOMEvent::isPageTransitionEvent() const | 174 bool WebDOMEvent::isPageTransitionEvent() const |
| 175 { | 175 { |
| 176 ASSERT(m_private.get()); | 176 ASSERT(m_private.get()); |
| 177 return m_private->hasInterface(blink::EventNames::PageTransitionEvent); | 177 return m_private->hasInterface(EventNames::PageTransitionEvent); |
| 178 } | 178 } |
| 179 | 179 |
| 180 bool WebDOMEvent::isPopStateEvent() const | 180 bool WebDOMEvent::isPopStateEvent() const |
| 181 { | 181 { |
| 182 ASSERT(m_private.get()); | 182 ASSERT(m_private.get()); |
| 183 return m_private->hasInterface(blink::EventNames::PopStateEvent); | 183 return m_private->hasInterface(EventNames::PopStateEvent); |
| 184 } | 184 } |
| 185 | 185 |
| 186 bool WebDOMEvent::isProgressEvent() const | 186 bool WebDOMEvent::isProgressEvent() const |
| 187 { | 187 { |
| 188 ASSERT(m_private.get()); | 188 ASSERT(m_private.get()); |
| 189 return m_private->hasInterface(blink::EventNames::ProgressEvent); | 189 return m_private->hasInterface(EventNames::ProgressEvent); |
| 190 } | 190 } |
| 191 | 191 |
| 192 bool WebDOMEvent::isXMLHttpRequestProgressEvent() const | 192 bool WebDOMEvent::isXMLHttpRequestProgressEvent() const |
| 193 { | 193 { |
| 194 ASSERT(m_private.get()); | 194 ASSERT(m_private.get()); |
| 195 return m_private->hasInterface(blink::EventNames::XMLHttpRequestProgressEven
t); | 195 return m_private->hasInterface(EventNames::XMLHttpRequestProgressEvent); |
| 196 } | 196 } |
| 197 | 197 |
| 198 } // namespace blink | 198 } // namespace blink |
| OLD | NEW |