Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: ui/accessibility/ax_range.cc

Issue 2934953004: De-templatize ui::AXPosition
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/ax_range.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/accessibility/ax_range.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698