| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 String title() const { return m_title; } | 84 String title() const { return m_title; } |
| 85 String dir() const { return m_dir; } | 85 String dir() const { return m_dir; } |
| 86 String lang() const { return m_lang; } | 86 String lang() const { return m_lang; } |
| 87 String body() const { return m_body; } | 87 String body() const { return m_body; } |
| 88 String tag() const { return m_tag; } | 88 String tag() const { return m_tag; } |
| 89 String icon() const { return m_iconUrl; } | 89 String icon() const { return m_iconUrl; } |
| 90 bool silent() const { return m_silent; } | 90 bool silent() const { return m_silent; } |
| 91 ScriptValue data(ScriptState*) const; | 91 ScriptValue data(ScriptState*) const; |
| 92 | 92 |
| 93 TextDirection direction() const; | |
| 94 KURL iconURL() const { return m_iconUrl; } | 93 KURL iconURL() const { return m_iconUrl; } |
| 95 SerializedScriptValue* serializedData() const { return m_serializedData.get(
); } | 94 SerializedScriptValue* serializedData() const { return m_serializedData.get(
); } |
| 96 | 95 |
| 96 static WebNotificationData directionStringToEnum(String direction); |
| 97 static String permissionString(WebNotificationPermission); | 97 static String permissionString(WebNotificationPermission); |
| 98 static String permission(ExecutionContext*); | 98 static String permission(ExecutionContext*); |
| 99 static WebNotificationPermission checkPermission(ExecutionContext*); | 99 static WebNotificationPermission checkPermission(ExecutionContext*); |
| 100 static void requestPermission(ExecutionContext*, NotificationPermissionCallb
ack* = nullptr); | 100 static void requestPermission(ExecutionContext*, NotificationPermissionCallb
ack* = nullptr); |
| 101 | 101 |
| 102 // EventTarget interface. | 102 // EventTarget interface. |
| 103 virtual ExecutionContext* executionContext() const override final { return A
ctiveDOMObject::executionContext(); } | 103 virtual ExecutionContext* executionContext() const override final { return A
ctiveDOMObject::executionContext(); } |
| 104 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override final; | 104 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override final; |
| 105 virtual const AtomicString& interfaceName() const override; | 105 virtual const AtomicString& interfaceName() const override; |
| 106 | 106 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void setState(NotificationState state) { m_state = state; } | 160 void setState(NotificationState state) { m_state = state; } |
| 161 | 161 |
| 162 NotificationState m_state; | 162 NotificationState m_state; |
| 163 | 163 |
| 164 AsyncMethodRunner<Notification> m_asyncRunner; | 164 AsyncMethodRunner<Notification> m_asyncRunner; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace blink | 167 } // namespace blink |
| 168 | 168 |
| 169 #endif // Notification_h | 169 #endif // Notification_h |
| OLD | NEW |