| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // not changed, |callback| is never run. | 186 // not changed, |callback| is never run. |
| 187 // | 187 // |
| 188 // The return value is a bitmask of AppbarAutohideEdge. | 188 // The return value is a bitmask of AppbarAutohideEdge. |
| 189 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 189 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
| 190 const base::Closure& callback); | 190 const base::Closure& callback); |
| 191 #endif | 191 #endif |
| 192 | 192 |
| 193 // Returns a blocking pool task runner given a TaskRunnerType. | 193 // Returns a blocking pool task runner given a TaskRunnerType. |
| 194 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); | 194 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); |
| 195 | 195 |
| 196 // Returns the insets that should be applied around a DialogClientView. |
| 197 virtual gfx::Insets GetDialogButtonInsets(); |
| 198 |
| 199 // Returns the spacing between a pair of related horizontal buttons, used for |
| 200 // dialog layout. |
| 201 virtual int GetDialogRelatedButtonHorizontalSpacing(); |
| 202 |
| 196 protected: | 203 protected: |
| 197 ViewsDelegate(); | 204 ViewsDelegate(); |
| 198 | 205 |
| 199 private: | 206 private: |
| 200 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; | 207 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |
| 201 | 208 |
| 202 #if defined(USE_AURA) | 209 #if defined(USE_AURA) |
| 203 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; | 210 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; |
| 204 #endif | 211 #endif |
| 205 | 212 |
| 206 NativeWidgetFactory native_widget_factory_; | 213 NativeWidgetFactory native_widget_factory_; |
| 207 | 214 |
| 208 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 215 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 209 }; | 216 }; |
| 210 | 217 |
| 211 } // namespace views | 218 } // namespace views |
| 212 | 219 |
| 213 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 220 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |