| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/views/views_touch_selection_controller_factory.h" | 9 #include "ui/views/views_touch_selection_controller_factory.h" |
| 10 #include "ui/views/widget/native_widget_private.h" | 10 #include "ui/views/widget/native_widget_private.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 void ViewsDelegate::ReleaseRef() { | 87 void ViewsDelegate::ReleaseRef() { |
| 88 } | 88 } |
| 89 | 89 |
| 90 content::WebContents* ViewsDelegate::CreateWebContents( | 90 content::WebContents* ViewsDelegate::CreateWebContents( |
| 91 content::BrowserContext* browser_context, | 91 content::BrowserContext* browser_context, |
| 92 content::SiteInstance* site_instance) { | 92 content::SiteInstance* site_instance) { |
| 93 return nullptr; | 93 return nullptr; |
| 94 } | 94 } |
| 95 | 95 |
| 96 base::TimeDelta ViewsDelegate::GetDefaultTextfieldObscuredRevealDuration() { | 96 base::TimeDelta ViewsDelegate::GetTextfieldPasswordRevealDuration() { |
| 97 return base::TimeDelta(); | 97 return base::TimeDelta(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool ViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) { | 100 bool ViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) { |
| 101 return false; | 101 return false; |
| 102 } | 102 } |
| 103 | 103 |
| 104 ui::ContextFactory* ViewsDelegate::GetContextFactory() { | 104 ui::ContextFactory* ViewsDelegate::GetContextFactory() { |
| 105 return nullptr; | 105 return nullptr; |
| 106 } | 106 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 127 views_delegate = this; | 127 views_delegate = this; |
| 128 | 128 |
| 129 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); | 129 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); |
| 130 | 130 |
| 131 #if defined(USE_AURA) | 131 #if defined(USE_AURA) |
| 132 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); | 132 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); |
| 133 #endif | 133 #endif |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace views | 136 } // namespace views |
| OLD | NEW |