| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 #endif | 194 #endif |
| 195 | 195 |
| 196 // Returns a blocking pool task runner given a TaskRunnerType. | 196 // Returns a blocking pool task runner given a TaskRunnerType. |
| 197 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); | 197 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); |
| 198 | 198 |
| 199 // Returns the insets that should be applied around a DialogClientView. Note | 199 // Returns the insets that should be applied around a DialogClientView. Note |
| 200 // that the top inset is used for the distance between the buttons and the | 200 // that the top inset is used for the distance between the buttons and the |
| 201 // DialogClientView's content view. | 201 // DialogClientView's content view. |
| 202 virtual gfx::Insets GetDialogButtonInsets() const; | 202 virtual gfx::Insets GetDialogButtonInsets() const; |
| 203 | 203 |
| 204 // Returns the distance between a dialog's edge and the close button in the |
| 205 // upper trailing corner. |
| 206 virtual int GetDialogCloseButtonMargin() const; |
| 207 |
| 204 // Returns the spacing between a pair of related horizontal buttons, used for | 208 // Returns the spacing between a pair of related horizontal buttons, used for |
| 205 // dialog layout. | 209 // dialog layout. |
| 206 virtual int GetDialogRelatedButtonHorizontalSpacing() const; | 210 virtual int GetDialogRelatedButtonHorizontalSpacing() const; |
| 207 | 211 |
| 208 // Returns the spacing between a pair of related vertical controls, used for | 212 // Returns the spacing between a pair of related vertical controls, used for |
| 209 // dialog layout. | 213 // dialog layout. |
| 210 virtual int GetDialogRelatedControlVerticalSpacing() const; | 214 virtual int GetDialogRelatedControlVerticalSpacing() const; |
| 211 | 215 |
| 212 // Returns the insets that should be applied around a dialog's frame view. | 216 // Returns the insets that should be applied around a dialog's frame view. |
| 213 virtual gfx::Insets GetDialogFrameViewInsets() const; | 217 virtual gfx::Insets GetDialogFrameViewInsets() const; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 226 #endif | 230 #endif |
| 227 | 231 |
| 228 NativeWidgetFactory native_widget_factory_; | 232 NativeWidgetFactory native_widget_factory_; |
| 229 | 233 |
| 230 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 234 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 231 }; | 235 }; |
| 232 | 236 |
| 233 } // namespace views | 237 } // namespace views |
| 234 | 238 |
| 235 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 239 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |