| Index: ui/touch_selection/touch_selection_controller_aura_test_api.cc
|
| diff --git a/ui/touch_selection/touch_selection_controller_aura_test_api.cc b/ui/touch_selection/touch_selection_controller_aura_test_api.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00d048d120e5625fef88041d4eb8a21c3d59286c
|
| --- /dev/null
|
| +++ b/ui/touch_selection/touch_selection_controller_aura_test_api.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2015 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/touch_selection/touch_selection_controller_aura_test_api.h"
|
| +
|
| +namespace ui {
|
| +
|
| +TouchSelectionControllerAuraTestApi::TouchSelectionControllerAuraTestApi(
|
| + TouchSelectionControllerAura* selection_controller)
|
| + : selection_controller_(selection_controller),
|
| + immediate_quick_menu_(false) {
|
| + DCHECK(selection_controller_);
|
| + DCHECK(!selection_controller_->test_api_);
|
| + selection_controller_->test_api_ = this;
|
| +}
|
| +
|
| +TouchSelectionControllerAuraTestApi::~TouchSelectionControllerAuraTestApi() {
|
| + selection_controller_->test_api_ = nullptr;
|
| +}
|
| +
|
| +} // namespace ui
|
|
|