| 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 "wtf/MainThread.h" | 8 #include "sky/engine/wtf/MainThread.h" |
| 9 #include "wtf/TemporaryChange.h" | 9 #include "sky/engine/wtf/TemporaryChange.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 #if ENABLE(ASSERT) | 13 #if ENABLE(ASSERT) |
| 14 | 14 |
| 15 class EventDispatchForbiddenScope { | 15 class EventDispatchForbiddenScope { |
| 16 public: | 16 public: |
| 17 EventDispatchForbiddenScope() | 17 EventDispatchForbiddenScope() |
| 18 { | 18 { |
| 19 if (!isMainThread()) | 19 if (!isMainThread()) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 public: | 65 public: |
| 66 AllowUserAgentEvents() { } | 66 AllowUserAgentEvents() { } |
| 67 }; | 67 }; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 #endif // ENABLE(ASSERT) | 70 #endif // ENABLE(ASSERT) |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| 73 | 73 |
| 74 #endif // EventDispatchForbiddenScope_h | 74 #endif // EventDispatchForbiddenScope_h |
| OLD | NEW |