blob: 20cb88f93594d7478590640f9f7c37f19b6ec34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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
|