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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 static size_t maxActions(); | 107 static size_t maxActions(); |
108 | 108 |
109 // EventTarget interface. | 109 // EventTarget interface. |
110 ExecutionContext* getExecutionContext() const final { return ActiveDOMObject
::getExecutionContext(); } | 110 ExecutionContext* getExecutionContext() const final { return ActiveDOMObject
::getExecutionContext(); } |
111 const AtomicString& interfaceName() const override; | 111 const AtomicString& interfaceName() const override; |
112 | 112 |
113 // ActiveDOMObject interface. | 113 // ActiveDOMObject interface. |
114 void stop() override; | 114 void stop() override; |
115 | 115 |
116 // ActiveScriptWrappable interface. | 116 // ScriptWrappable interface. |
117 bool hasPendingActivity() const final; | 117 bool hasPendingActivity() const final; |
118 | 118 |
119 DECLARE_VIRTUAL_TRACE(); | 119 DECLARE_VIRTUAL_TRACE(); |
120 | 120 |
121 protected: | 121 protected: |
122 // EventTarget interface. | 122 // EventTarget interface. |
123 DispatchEventResult dispatchEventInternal(Event*) final; | 123 DispatchEventResult dispatchEventInternal(Event*) final; |
124 | 124 |
125 private: | 125 private: |
126 Notification(ExecutionContext*, const WebNotificationData&); | 126 Notification(ExecutionContext*, const WebNotificationData&); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 NotificationState m_state; | 160 NotificationState m_state; |
161 | 161 |
162 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; | 162 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; |
163 | 163 |
164 Member<NotificationResourcesLoader> m_loader; | 164 Member<NotificationResourcesLoader> m_loader; |
165 }; | 165 }; |
166 | 166 |
167 } // namespace blink | 167 } // namespace blink |
168 | 168 |
169 #endif // Notification_h | 169 #endif // Notification_h |
OLD | NEW |