OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |