blob: 0131fd864dda1df98637a78d792d208f081484ec [file] [log] [blame]
// Copyright 2016 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 THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_ITERATORS_FORWARDS_TEXT_BUFFER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_ITERATORS_FORWARDS_TEXT_BUFFER_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/editing/iterators/text_buffer_base.h"
namespace blink {
class CORE_EXPORT ForwardsTextBuffer final : public TextBufferBase {
STACK_ALLOCATED();
public:
ForwardsTextBuffer() = default;
const UChar* Data() const override;
private:
UChar* CalcDestination(wtf_size_t length) override;
DISALLOW_COPY_AND_ASSIGN(ForwardsTextBuffer);
};
} // namespace blink
#endif // TextBuffer_h