| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 // Returns the insets that should be applied around a DialogClientView. Note | 196 // Returns the insets that should be applied around a DialogClientView. Note |
| 197 // that the top inset is used for the distance between the buttons and the | 197 // that the top inset is used for the distance between the buttons and the |
| 198 // DialogClientView's content view. | 198 // DialogClientView's content view. |
| 199 virtual gfx::Insets GetDialogButtonInsets(); | 199 virtual gfx::Insets GetDialogButtonInsets(); |
| 200 | 200 |
| 201 // Returns the spacing between a pair of related horizontal buttons, used for | 201 // Returns the spacing between a pair of related horizontal buttons, used for |
| 202 // dialog layout. | 202 // dialog layout. |
| 203 virtual int GetDialogRelatedButtonHorizontalSpacing(); | 203 virtual int GetDialogRelatedButtonHorizontalSpacing(); |
| 204 | 204 |
| 205 // Returns the insets that should be applied around a dialog's frame view. |
| 206 virtual gfx::Insets GetDialogFrameViewInsets(); |
| 207 |
| 205 protected: | 208 protected: |
| 206 ViewsDelegate(); | 209 ViewsDelegate(); |
| 207 | 210 |
| 208 private: | 211 private: |
| 209 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; | 212 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |
| 210 | 213 |
| 211 #if defined(USE_AURA) | 214 #if defined(USE_AURA) |
| 212 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; | 215 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; |
| 213 #endif | 216 #endif |
| 214 | 217 |
| 215 NativeWidgetFactory native_widget_factory_; | 218 NativeWidgetFactory native_widget_factory_; |
| 216 | 219 |
| 217 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 220 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 218 }; | 221 }; |
| 219 | 222 |
| 220 } // namespace views | 223 } // namespace views |
| 221 | 224 |
| 222 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 225 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |