1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "ContextMenuAllowedScope.h"
10 static unsigned s_ContextMenuAllowedCount
= 0;
12 ContextMenuAllowedScope::ContextMenuAllowedScope()
14 s_ContextMenuAllowedCount
++;
17 ContextMenuAllowedScope::~ContextMenuAllowedScope()
19 s_ContextMenuAllowedCount
--;
22 bool ContextMenuAllowedScope::isContextMenuAllowed()
24 return s_ContextMenuAllowedCount
;