| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 content::BrowserContext* browser_context, | 112 content::BrowserContext* browser_context, |
| 113 content::SiteInstance* site_instance) = 0; | 113 content::SiteInstance* site_instance) = 0; |
| 114 | 114 |
| 115 // Gives the platform a chance to modify the properties of a Widget. | 115 // Gives the platform a chance to modify the properties of a Widget. |
| 116 virtual void OnBeforeWidgetInit(Widget::InitParams* params, | 116 virtual void OnBeforeWidgetInit(Widget::InitParams* params, |
| 117 internal::NativeWidgetDelegate* delegate) = 0; | 117 internal::NativeWidgetDelegate* delegate) = 0; |
| 118 | 118 |
| 119 // Returns the default obscured text reveal duration. | 119 // Returns the default obscured text reveal duration. |
| 120 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; | 120 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; |
| 121 | 121 |
| 122 // Returns true if the operating system's window manager will always provide a |
| 123 // title bar with caption buttons (ignoring the setting to |
| 124 // |remove_standard_frame| in InitParams). If |maximized|, this applies to |
| 125 // maximized windows; otherwise to restored windows. |
| 126 virtual bool WindowManagerProvidesTitleBar(bool maximized); |
| 127 |
| 122 private: | 128 private: |
| 123 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; | 129 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; |
| 124 }; | 130 }; |
| 125 | 131 |
| 126 } // namespace views | 132 } // namespace views |
| 127 | 133 |
| 128 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 134 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |