| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 String replaceId() const { return tag(); } | 108 String replaceId() const { return tag(); } |
| 109 void setReplaceId(const String& replaceId) { setTag(replaceId); } | 109 void setReplaceId(const String& replaceId) { setTag(replaceId); } |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 String tag() const { return m_tag; } | 112 String tag() const { return m_tag; } |
| 113 void setTag(const String& tag) { m_tag = tag; } | 113 void setTag(const String& tag) { m_tag = tag; } |
| 114 | 114 |
| 115 TextDirection direction() const { return dir() == "rtl" ? RTL : LTR; } | 115 TextDirection direction() const { return dir() == "rtl" ? RTL : LTR; } |
| 116 | 116 |
| 117 #if ENABLE(LEGACY_NOTIFICATIONS) | 117 #if ENABLE(LEGACY_NOTIFICATIONS) |
| 118 EventListener* ondisplay() { return getAttributeEventListener(eventNames().s
howEvent); } | 118 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(display, show); |
| 119 void setOndisplay(PassRefPtr<EventListener> listener) { setAttributeEventLis
tener(eventNames().showEvent, listener); } | |
| 120 #endif | 119 #endif |
| 121 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); | 120 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); |
| 122 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 121 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 123 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 122 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 124 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); | 123 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); |
| 125 | 124 |
| 126 void dispatchClickEvent(); | 125 void dispatchClickEvent(); |
| 127 void dispatchCloseEvent(); | 126 void dispatchCloseEvent(); |
| 128 void dispatchErrorEvent(); | 127 void dispatchErrorEvent(); |
| 129 void dispatchShowEvent(); | 128 void dispatchShowEvent(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 #if ENABLE(NOTIFICATIONS) | 203 #if ENABLE(NOTIFICATIONS) |
| 205 OwnPtr<Timer<Notification> > m_taskTimer; | 204 OwnPtr<Timer<Notification> > m_taskTimer; |
| 206 #endif | 205 #endif |
| 207 }; | 206 }; |
| 208 | 207 |
| 209 } // namespace WebCore | 208 } // namespace WebCore |
| 210 | 209 |
| 211 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) | 210 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) |
| 212 | 211 |
| 213 #endif // Notifications_h | 212 #endif // Notifications_h |
| OLD | NEW |