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

Unified Diff: ui/touch_selection/touch_selection_controller_aura_test_api.cc

Issue 1046783002: wip: Aura-specific implementation of unified touch selection: touch_selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving the responsibility for showing the menu into the client. Created 5 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698