Upstream version 6.35.121.0
[platform/framework/web/crosswalk.git] / src / ui / views / views_delegate.cc
1 // Copyright (c) 2013 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/views/views_delegate.h"
6
7 #include "ui/views/touchui/touch_selection_controller_impl.h"
8
9 namespace views {
10
11 ViewsDelegate::ViewsDelegate()
12     : views_tsc_factory_(new views::ViewsTouchSelectionControllerFactory),
13   should_show_titlebar_(true) {
14   ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get());
15 }
16
17 ViewsDelegate::~ViewsDelegate() {
18   ui::TouchSelectionControllerFactory::SetInstance(NULL);
19 }
20
21 bool ViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) {
22   return false;
23 }
24
25 }  // namespace views