| Index: ui/accessibility/ax_range.cc
|
| diff --git a/ui/accessibility/ax_range.cc b/ui/accessibility/ax_range.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5e4bf8b904f8b7da146864a45f56b4a91d6429b
|
| --- /dev/null
|
| +++ b/ui/accessibility/ax_range.cc
|
| @@ -0,0 +1,26 @@
|
| +// 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 "ui/accessibility/ax_range.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace ui {
|
| +
|
| +AXAbstractRange::AXAbstractRange(std::unique_ptr<AXPositionBase> anchor,
|
| + std::unique_ptr<AXPositionBase> focus)
|
| + : anchor_(std::move(anchor)), focus_(std::move(focus)) {
|
| + DCHECK(anchor_);
|
| + DCHECK(focus_);
|
| +}
|
| +
|
| +AXAbstractRange::AXAbstractRange(AXAbstractRange&& other)
|
| + : anchor_(std::move(other.anchor_)), focus_(std::move(other.focus_)) {
|
| + DCHECK(anchor_);
|
| + DCHECK(focus_);
|
| +}
|
| +
|
| +AXAbstractRange::~AXAbstractRange() {}
|
| +
|
| +} // namespace ui
|
|
|