| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/touch_selection/touch_selection_controller_aura_test_api.h" |
| 6 |
| 7 namespace ui { |
| 8 |
| 9 TouchSelectionControllerAuraTestApi::TouchSelectionControllerAuraTestApi( |
| 10 TouchSelectionControllerAura* selection_controller) |
| 11 : selection_controller_(selection_controller), |
| 12 immediate_quick_menu_(false) { |
| 13 DCHECK(selection_controller_); |
| 14 DCHECK(!selection_controller_->test_api_); |
| 15 selection_controller_->test_api_ = this; |
| 16 } |
| 17 |
| 18 TouchSelectionControllerAuraTestApi::~TouchSelectionControllerAuraTestApi() { |
| 19 selection_controller_->test_api_ = nullptr; |
| 20 } |
| 21 |
| 22 } // namespace ui |
| OLD | NEW |