blob: ce1b8f3ae7160c633180f25b598fd284ddf4b291 [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.
#include "third_party/blink/renderer/core/editing/text_affinity.h"
#include <ostream> // NOLINT
#include "third_party/blink/public/web/web_ax_enums.h"
#include "third_party/blink/renderer/platform/wtf/assertions.h"
namespace blink {
std::ostream& operator<<(std::ostream& ostream, TextAffinity affinity) {
switch (affinity) {
case TextAffinity::kDownstream:
return ostream << "TextAffinity::Downstream";
case TextAffinity::kUpstream:
return ostream << "TextAffinity::Upstream";
}
return ostream << "TextAffinity(" << static_cast<int>(affinity) << ')';
}
} // namespace blink