| // Copyright 2017 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. |
| |
| #include "core/editing/markers/SuggestionMarkerReplacementScope.h" |
| |
| namespace blink { |
| |
| bool SuggestionMarkerReplacementScope::currently_in_scope_ = false; |
| |
| SuggestionMarkerReplacementScope::SuggestionMarkerReplacementScope() { |
| DCHECK(!currently_in_scope_); |
| currently_in_scope_ = true; |
| } |
| |
| SuggestionMarkerReplacementScope::~SuggestionMarkerReplacementScope() { |
| currently_in_scope_ = false; |
| } |
| |
| // static |
| bool SuggestionMarkerReplacementScope::CurrentlyInScope() { |
| return currently_in_scope_; |
| } |
| |
| } // namespace blink |