| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef SKY_ENGINE_PLATFORM_EVENTDISPATCHFORBIDDENSCOPE_H_ |
| #define SKY_ENGINE_PLATFORM_EVENTDISPATCHFORBIDDENSCOPE_H_ |
| #include "sky/engine/wtf/MainThread.h" |
| #include "sky/engine/wtf/TemporaryChange.h" |
| class EventDispatchForbiddenScope { |
| EventDispatchForbiddenScope() |
| ~EventDispatchForbiddenScope() |
| static bool isEventDispatchForbidden() |
| class AllowUserAgentEvents { |
| TemporaryChange<unsigned> m_change; |
| class EventDispatchForbiddenScope { |
| EventDispatchForbiddenScope() { } |
| class AllowUserAgentEvents { |
| AllowUserAgentEvents() { } |
| #endif // SKY_ENGINE_PLATFORM_EVENTDISPATCHFORBIDDENSCOPE_H_ |