| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void close(); | 78 void close(); |
| 79 | 79 |
| 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); | 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); |
| 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); | 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); |
| 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 84 | 84 |
| 85 // WebNotificationDelegate implementation. | 85 // WebNotificationDelegate implementation. |
| 86 void dispatchShowEvent() override; | 86 void dispatchShowEvent() override; |
| 87 void dispatchClickEvent() override; | 87 void dispatchClickEvent() override; |
| 88 void dispatchClickEvent(int actionIndex) override; |
| 88 void dispatchErrorEvent() override; | 89 void dispatchErrorEvent() override; |
| 89 void dispatchCloseEvent() override; | 90 void dispatchCloseEvent() override; |
| 90 | 91 |
| 91 String title() const { return m_title; } | 92 String title() const { return m_title; } |
| 92 String dir() const { return m_dir; } | 93 String dir() const { return m_dir; } |
| 93 String lang() const { return m_lang; } | 94 String lang() const { return m_lang; } |
| 94 String body() const { return m_body; } | 95 String body() const { return m_body; } |
| 95 String tag() const { return m_tag; } | 96 String tag() const { return m_tag; } |
| 96 String icon() const { return m_iconUrl; } | 97 String icon() const { return m_iconUrl; } |
| 97 const NavigatorVibration::VibrationPattern& vibrate(bool& isNull) const; | 98 const NavigatorVibration::VibrationPattern& vibrate(bool& isNull) const; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 void setState(NotificationState state) { m_state = state; } | 182 void setState(NotificationState state) { m_state = state; } |
| 182 | 183 |
| 183 NotificationState m_state; | 184 NotificationState m_state; |
| 184 | 185 |
| 185 AsyncMethodRunner<Notification> m_asyncRunner; | 186 AsyncMethodRunner<Notification> m_asyncRunner; |
| 186 }; | 187 }; |
| 187 | 188 |
| 188 } // namespace blink | 189 } // namespace blink |
| 189 | 190 |
| 190 #endif // Notification_h | 191 #endif // Notification_h |
| OLD | NEW |