Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 BLINK_EXPORT void dispatchCloseEvent(bool byUser); | 86 BLINK_EXPORT void dispatchCloseEvent(bool byUser); |
| 87 | 87 |
| 88 // Called to indicate the notification was clicked on. | 88 // Called to indicate the notification was clicked on. |
| 89 BLINK_EXPORT void dispatchClickEvent(); | 89 BLINK_EXPORT void dispatchClickEvent(); |
| 90 | 90 |
| 91 // FIXME: Remove these methods once Chromium switched to the new APIs. | 91 // FIXME: Remove these methods once Chromium switched to the new APIs. |
| 92 WebString replaceId() const { return tag(); } | 92 WebString replaceId() const { return tag(); } |
| 93 void dispatchDisplayEvent() { dispatchShowEvent(); } | 93 void dispatchDisplayEvent() { dispatchShowEvent(); } |
| 94 | 94 |
| 95 #if BLINK_IMPLEMENTATION | 95 #if BLINK_IMPLEMENTATION |
| 96 WebNotification(const WTF::PassRefPtr<WebCore::Notification>&); | 96 WebNotification(const WTF::RawPtr<WebCore::Notification>&); |
|
sof
2014/06/04 21:21:08
I want to go further here and use a straight point
| |
| 97 WebNotification& operator=(const WTF::PassRefPtr<WebCore::Notification>&); | 97 WebNotification& operator=(const WTF::RawPtr<WebCore::Notification>&); |
| 98 operator WTF::PassRefPtr<WebCore::Notification>() const; | |
| 99 #endif | 98 #endif |
| 100 | 99 |
| 101 private: | 100 private: |
| 102 WebPrivatePtr<WebCore::Notification> m_private; | 101 WebPrivatePtr<WebCore::Notification> m_private; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 inline bool operator==(const WebNotification& a, const WebNotification& b) | 104 inline bool operator==(const WebNotification& a, const WebNotification& b) |
| 106 { | 105 { |
| 107 return a.equals(b); | 106 return a.equals(b); |
| 108 } | 107 } |
| 109 | 108 |
| 110 inline bool operator!=(const WebNotification& a, const WebNotification& b) | 109 inline bool operator!=(const WebNotification& a, const WebNotification& b) |
| 111 { | 110 { |
| 112 return !a.equals(b); | 111 return !a.equals(b); |
| 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.lessThan(b); | 116 return a.lessThan(b); |
| 118 } | 117 } |
| 119 | 118 |
| 120 } // namespace blink | 119 } // namespace blink |
| 121 | 120 |
| 122 #endif | 121 #endif |
| OLD | NEW |