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

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

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/controls/textfield/textfield.cc ('k') | ui/views/views_delegate.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // Creates a web contents. This will return NULL unless overriden. 158 // Creates a web contents. This will return NULL unless overriden.
159 virtual content::WebContents* CreateWebContents( 159 virtual content::WebContents* CreateWebContents(
160 content::BrowserContext* browser_context, 160 content::BrowserContext* browser_context,
161 content::SiteInstance* site_instance); 161 content::SiteInstance* site_instance);
162 162
163 // Gives the platform a chance to modify the properties of a Widget. 163 // Gives the platform a chance to modify the properties of a Widget.
164 virtual void OnBeforeWidgetInit(Widget::InitParams* params, 164 virtual void OnBeforeWidgetInit(Widget::InitParams* params,
165 internal::NativeWidgetDelegate* delegate) = 0; 165 internal::NativeWidgetDelegate* delegate) = 0;
166 166
167 // Returns the default obscured text reveal duration. 167 // Returns the password reveal duration for Textfield.
168 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration(); 168 virtual base::TimeDelta GetTextfieldPasswordRevealDuration();
169 169
170 // Returns true if the operating system's window manager will always provide a 170 // Returns true if the operating system's window manager will always provide a
171 // title bar with caption buttons (ignoring the setting to 171 // title bar with caption buttons (ignoring the setting to
172 // |remove_standard_frame| in InitParams). If |maximized|, this applies to 172 // |remove_standard_frame| in InitParams). If |maximized|, this applies to
173 // maximized windows; otherwise to restored windows. 173 // maximized windows; otherwise to restored windows.
174 virtual bool WindowManagerProvidesTitleBar(bool maximized); 174 virtual bool WindowManagerProvidesTitleBar(bool maximized);
175 175
176 // Returns the context factory for new windows. 176 // Returns the context factory for new windows.
177 virtual ui::ContextFactory* GetContextFactory(); 177 virtual ui::ContextFactory* GetContextFactory();
178 178
(...skipping 25 matching lines...) Expand all
204 #endif 204 #endif
205 205
206 NativeWidgetFactory native_widget_factory_; 206 NativeWidgetFactory native_widget_factory_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 208 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
209 }; 209 };
210 210
211 } // namespace views 211 } // namespace views
212 212
213 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 213 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698