Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Side by Side Diff: ui/views/views_delegate.cc

Issue 2286433002: views: Textfield gets password reveal duration from ViewsDelegate (Closed)
Patch Set: move GetPasswordRevealDuration to cc and revert TextfieldTestApi change Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698