OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/views_delegate.h" | 5 #include "ui/views/views_delegate.h" |
6 | 6 |
7 #include "ui/views/touchui/touch_selection_controller_impl.h" | 7 #include "ui/views/views_touch_selection_controller_factory.h" |
8 | 8 |
9 namespace views { | 9 namespace views { |
10 | 10 |
11 ViewsDelegate::ViewsDelegate() | 11 ViewsDelegate::ViewsDelegate() |
12 : views_tsc_factory_(new views::ViewsTouchSelectionControllerFactory) { | 12 : views_tsc_factory_(new ViewsTouchSelectionControllerFactory) { |
13 ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get()); | 13 ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get()); |
14 } | 14 } |
15 | 15 |
16 ViewsDelegate::~ViewsDelegate() { | 16 ViewsDelegate::~ViewsDelegate() { |
17 ui::TouchSelectionControllerFactory::SetInstance(NULL); | 17 ui::TouchSelectionControllerFactory::SetInstance(NULL); |
18 } | 18 } |
19 | 19 |
20 void ViewsDelegate::SaveWindowPlacement(const Widget* widget, | 20 void ViewsDelegate::SaveWindowPlacement(const Widget* widget, |
21 const std::string& window_name, | 21 const std::string& window_name, |
22 const gfx::Rect& bounds, | 22 const gfx::Rect& bounds, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 #if defined(OS_WIN) | 84 #if defined(OS_WIN) |
85 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, | 85 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, |
86 const base::Closure& callback) { | 86 const base::Closure& callback) { |
87 return EDGE_BOTTOM; | 87 return EDGE_BOTTOM; |
88 } | 88 } |
89 #endif | 89 #endif |
90 | 90 |
91 } // namespace views | 91 } // namespace views |
OLD | NEW |