| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "ui/views/views_touch_selection_controller_factory.h" | 8 #include "ui/views/views_touch_selection_controller_factory.h" |
| 9 #include "ui/views/widget/native_widget_private.h" | 9 #include "ui/views/widget/native_widget_private.h" |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, | 113 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, |
| 114 const base::Closure& callback) { | 114 const base::Closure& callback) { |
| 115 return EDGE_BOTTOM; | 115 return EDGE_BOTTOM; |
| 116 } | 116 } |
| 117 #endif | 117 #endif |
| 118 | 118 |
| 119 scoped_refptr<base::TaskRunner> ViewsDelegate::GetBlockingPoolTaskRunner() { | 119 scoped_refptr<base::TaskRunner> ViewsDelegate::GetBlockingPoolTaskRunner() { |
| 120 return nullptr; | 120 return nullptr; |
| 121 } | 121 } |
| 122 | 122 |
| 123 ui::NativeTheme* ViewsDelegate::GetNativeThemeOverride(const Widget* widget) { |
| 124 return nullptr; |
| 125 } |
| 126 |
| 123 ViewsDelegate::ViewsDelegate() | 127 ViewsDelegate::ViewsDelegate() |
| 124 : views_tsc_factory_(new ViewsTouchEditingControllerFactory) { | 128 : views_tsc_factory_(new ViewsTouchEditingControllerFactory) { |
| 125 DCHECK(!views_delegate); | 129 DCHECK(!views_delegate); |
| 126 views_delegate = this; | 130 views_delegate = this; |
| 127 | 131 |
| 128 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); | 132 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); |
| 129 | 133 |
| 130 #if defined(USE_AURA) | 134 #if defined(USE_AURA) |
| 131 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); | 135 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); |
| 132 #endif | 136 #endif |
| 133 } | 137 } |
| 134 | 138 |
| 135 } // namespace views | 139 } // namespace views |
| OLD | NEW |