blob: 20cb88f93594d7478590640f9f7c37f19b6ec34d [file] [log] [blame]
// Copyright (c) 2013 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/views/views_delegate.h"
#include "ui/views/touchui/touch_selection_controller_impl.h"
namespace views {
ViewsDelegate::ViewsDelegate()
: views_tsc_factory_(new views::ViewsTouchSelectionControllerFactory) {
ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get());
}
ViewsDelegate::~ViewsDelegate() {
ui::TouchSelectionControllerFactory::SetInstance(NULL);
}
} // namespace views