| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // 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 |
| 213 // dialog layout. | 213 // dialog layout. |
| 214 virtual int GetDialogRelatedControlVerticalSpacing() const; | 214 virtual int GetDialogRelatedControlVerticalSpacing() const; |
| 215 | 215 |
| 216 // 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. |
| 217 virtual gfx::Insets GetDialogFrameViewInsets() const; | 217 virtual gfx::Insets GetDialogFrameViewInsets() const; |
| 218 | 218 |
| 219 // Returns the margins that should be applied around a bubble dialog. | 219 // Returns the margins that should be applied around a bubble dialog. |
| 220 virtual gfx::Insets GetBubbleDialogMargins() const; | 220 virtual gfx::Insets GetBubbleDialogMargins() const; |
| 221 | 221 |
| 222 // Returns the default minimum width of a dialog button. |
| 223 virtual int GetDialogButtonMinimumWidth() const; |
| 224 |
| 222 protected: | 225 protected: |
| 223 ViewsDelegate(); | 226 ViewsDelegate(); |
| 224 | 227 |
| 225 private: | 228 private: |
| 226 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; | 229 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |
| 227 | 230 |
| 228 #if defined(USE_AURA) | 231 #if defined(USE_AURA) |
| 229 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; | 232 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; |
| 230 #endif | 233 #endif |
| 231 | 234 |
| 232 NativeWidgetFactory native_widget_factory_; | 235 NativeWidgetFactory native_widget_factory_; |
| 233 | 236 |
| 234 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 237 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 235 }; | 238 }; |
| 236 | 239 |
| 237 } // namespace views | 240 } // namespace views |
| 238 | 241 |
| 239 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 242 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |