| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EventDispatchForbiddenScope_h | 5 #ifndef EventDispatchForbiddenScope_h |
| 6 #define EventDispatchForbiddenScope_h | 6 #define EventDispatchForbiddenScope_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
| 11 #include "wtf/MainThread.h" | |
| 12 #include "wtf/TemporaryChange.h" | 11 #include "wtf/TemporaryChange.h" |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| 16 #if ENABLE(ASSERT) | 15 #if ENABLE(ASSERT) |
| 17 | 16 |
| 18 class EventDispatchForbiddenScope { | 17 class EventDispatchForbiddenScope { |
| 19 STACK_ALLOCATED(); | 18 STACK_ALLOCATED(); |
| 20 WTF_MAKE_NONCOPYABLE(EventDispatchForbiddenScope); | 19 WTF_MAKE_NONCOPYABLE(EventDispatchForbiddenScope); |
| 21 public: | 20 public: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 public: | 71 public: |
| 73 AllowUserAgentEvents() { } | 72 AllowUserAgentEvents() { } |
| 74 }; | 73 }; |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 #endif // ENABLE(ASSERT) | 76 #endif // ENABLE(ASSERT) |
| 78 | 77 |
| 79 } // namespace blink | 78 } // namespace blink |
| 80 | 79 |
| 81 #endif // EventDispatchForbiddenScope_h | 80 #endif // EventDispatchForbiddenScope_h |
| OLD | NEW |