1 // Copyright 2017 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. 4 5 #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_SUGGESTION_MARKER_REPLACEMENT_SCOPE_H_ 6 #define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_SUGGESTION_MARKER_REPLACEMENT_SCOPE_H_ 7 8 #include "base/macros.h" 9 #include "third_party/blink/renderer/core/core_export.h" 10 #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" 11 12 namespace blink { 13 14 class CORE_EXPORT SuggestionMarkerReplacementScope { 15 STACK_ALLOCATED(); 16 17 public: 18 SuggestionMarkerReplacementScope(); 19 ~SuggestionMarkerReplacementScope(); 20 21 static bool CurrentlyInScope(); 22 23 private: 24 static bool currently_in_scope_; 25 26 DISALLOW_COPY_AND_ASSIGN(SuggestionMarkerReplacementScope); 27 }; 28 29 } // namespace blink 30 31 #endif 32