| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 String lang() const { return m_lang; } | 73 String lang() const { return m_lang; } |
| 74 String body() const { return m_body; } | 74 String body() const { return m_body; } |
| 75 String tag() const { return m_tag; } | 75 String tag() const { return m_tag; } |
| 76 String icon() const { return m_iconUrl; } | 76 String icon() const { return m_iconUrl; } |
| 77 | 77 |
| 78 TextDirection direction() const; | 78 TextDirection direction() const; |
| 79 KURL iconURL() const { return m_iconUrl; } | 79 KURL iconURL() const { return m_iconUrl; } |
| 80 | 80 |
| 81 static const String& permissionString(NotificationClient::Permission); | 81 static const String& permissionString(NotificationClient::Permission); |
| 82 static const String& permission(ExecutionContext*); | 82 static const String& permission(ExecutionContext*); |
| 83 static void requestPermission(ExecutionContext*, PassOwnPtrWillBeRawPtr<Noti
ficationPermissionCallback> = nullptr); | 83 static void requestPermission(ExecutionContext*, NotificationPermissionCallb
ack* = nullptr); |
| 84 | 84 |
| 85 // EventTarget interface. | 85 // EventTarget interface. |
| 86 virtual ExecutionContext* executionContext() const OVERRIDE FINAL { return A
ctiveDOMObject::executionContext(); } | 86 virtual ExecutionContext* executionContext() const OVERRIDE FINAL { return A
ctiveDOMObject::executionContext(); } |
| 87 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE FINAL; | 87 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE FINAL; |
| 88 virtual const AtomicString& interfaceName() const OVERRIDE; | 88 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 89 | 89 |
| 90 // ActiveDOMObject interface. | 90 // ActiveDOMObject interface. |
| 91 virtual void stop() OVERRIDE; | 91 virtual void stop() OVERRIDE; |
| 92 virtual bool hasPendingActivity() const OVERRIDE; | 92 virtual bool hasPendingActivity() const OVERRIDE; |
| 93 | 93 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 NotificationState m_state; | 125 NotificationState m_state; |
| 126 | 126 |
| 127 NotificationClient* m_client; | 127 NotificationClient* m_client; |
| 128 | 128 |
| 129 AsyncMethodRunner<Notification> m_asyncRunner; | 129 AsyncMethodRunner<Notification> m_asyncRunner; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace blink | 132 } // namespace blink |
| 133 | 133 |
| 134 #endif // Notification_h | 134 #endif // Notification_h |
| OLD | NEW |