| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 WEBKIT_EXPORT void dispatchClickEvent(); | 101 WEBKIT_EXPORT void dispatchClickEvent(); |
| 102 | 102 |
| 103 #if WEBKIT_IMPLEMENTATION | 103 #if WEBKIT_IMPLEMENTATION |
| 104 WebNotification(const WTF::PassRefPtr<WebCore::Notification>&); | 104 WebNotification(const WTF::PassRefPtr<WebCore::Notification>&); |
| 105 WebNotification& operator=(const WTF::PassRefPtr<WebCore::Notification>&); | 105 WebNotification& operator=(const WTF::PassRefPtr<WebCore::Notification>&); |
| 106 operator WTF::PassRefPtr<WebCore::Notification>() const; | 106 operator WTF::PassRefPtr<WebCore::Notification>() const; |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 void assign(WebNotificationPrivate*); | 110 void assign(WebNotificationPrivate*); |
| 111 void dispatchEvent(const WTF::AtomicString& type); | |
| 112 WebNotificationPrivate* m_private; | 111 WebNotificationPrivate* m_private; |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 inline bool operator==(const WebNotification& a, const WebNotification& b) | 114 inline bool operator==(const WebNotification& a, const WebNotification& b) |
| 116 { | 115 { |
| 117 return a.equals(b); | 116 return a.equals(b); |
| 118 } | 117 } |
| 119 | 118 |
| 120 inline bool operator!=(const WebNotification& a, const WebNotification& b) | 119 inline bool operator!=(const WebNotification& a, const WebNotification& b) |
| 121 { | 120 { |
| 122 return !a.equals(b); | 121 return !a.equals(b); |
| 123 } | 122 } |
| 124 | 123 |
| 125 inline bool operator<(const WebNotification& a, const WebNotification& b) | 124 inline bool operator<(const WebNotification& a, const WebNotification& b) |
| 126 { | 125 { |
| 127 return a.lessThan(b); | 126 return a.lessThan(b); |
| 128 } | 127 } |
| 129 | 128 |
| 130 } // namespace WebKit | 129 } // namespace WebKit |
| 131 | 130 |
| 132 #endif | 131 #endif |
| OLD | NEW |