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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
37 #include "core/dom/ExecutionContextTask.h" | 37 #include "core/dom/ExecutionContextTask.h" |
38 #include "core/dom/ScopedWindowFocusAllowedIndicator.h" | 38 #include "core/dom/ScopedWindowFocusAllowedIndicator.h" |
39 #include "core/events/Event.h" | 39 #include "core/events/Event.h" |
40 #include "core/frame/UseCounter.h" | 40 #include "core/frame/UseCounter.h" |
41 #include "modules/notifications/NotificationOptions.h" | 41 #include "modules/notifications/NotificationOptions.h" |
42 #include "modules/notifications/NotificationPermissionClient.h" | 42 #include "modules/notifications/NotificationPermissionClient.h" |
| 43 #include "platform/UserGestureIndicator.h" |
43 #include "public/platform/Platform.h" | 44 #include "public/platform/Platform.h" |
44 #include "public/platform/WebNotificationData.h" | 45 #include "public/platform/WebNotificationData.h" |
45 #include "public/platform/WebNotificationManager.h" | 46 #include "public/platform/WebNotificationManager.h" |
46 #include "public/platform/WebSerializedOrigin.h" | 47 #include "public/platform/WebSerializedOrigin.h" |
47 | 48 |
48 namespace blink { | 49 namespace blink { |
49 namespace { | 50 namespace { |
50 | 51 |
51 WebNotificationManager* notificationManager() | 52 WebNotificationManager* notificationManager() |
52 { | 53 { |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 return m_state == NotificationStateShowing || m_asyncRunner.isActive(); | 255 return m_state == NotificationStateShowing || m_asyncRunner.isActive(); |
255 } | 256 } |
256 | 257 |
257 void Notification::trace(Visitor* visitor) | 258 void Notification::trace(Visitor* visitor) |
258 { | 259 { |
259 RefCountedGarbageCollectedEventTargetWithInlineData<Notification>::trace(vis
itor); | 260 RefCountedGarbageCollectedEventTargetWithInlineData<Notification>::trace(vis
itor); |
260 ActiveDOMObject::trace(visitor); | 261 ActiveDOMObject::trace(visitor); |
261 } | 262 } |
262 | 263 |
263 } // namespace blink | 264 } // namespace blink |
OLD | NEW |