| 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 "platform/wtf/Allocator.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "platform/wtf/Assertions.h" |
| 11 #include "wtf/AutoReset.h" | 11 #include "platform/wtf/AutoReset.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 #if DCHECK_IS_ON() | 15 #if DCHECK_IS_ON() |
| 16 | 16 |
| 17 class EventDispatchForbiddenScope { | 17 class EventDispatchForbiddenScope { |
| 18 STACK_ALLOCATED(); | 18 STACK_ALLOCATED(); |
| 19 WTF_MAKE_NONCOPYABLE(EventDispatchForbiddenScope); | 19 WTF_MAKE_NONCOPYABLE(EventDispatchForbiddenScope); |
| 20 | 20 |
| 21 public: | 21 public: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 public: | 64 public: |
| 65 AllowUserAgentEvents() {} | 65 AllowUserAgentEvents() {} |
| 66 }; | 66 }; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // DCHECK_IS_ON() | 69 #endif // DCHECK_IS_ON() |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // EventDispatchForbiddenScope_h | 73 #endif // EventDispatchForbiddenScope_h |
| OLD | NEW |