Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: ui/views/views_delegate.h

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: remove test friends Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual gfx::Insets GetDialogButtonInsets(); 202 virtual gfx::Insets GetDialogButtonInsets();
203 203
204 // Returns the spacing between a pair of related horizontal buttons, used for 204 // Returns the spacing between a pair of related horizontal buttons, used for
205 // dialog layout. 205 // dialog layout.
206 virtual int GetDialogRelatedButtonHorizontalSpacing(); 206 virtual int GetDialogRelatedButtonHorizontalSpacing();
207 207
208 // Returns the spacing between a pair of related vertical controls, used for 208 // Returns the spacing between a pair of related vertical controls, used for
209 // dialog layout. 209 // dialog layout.
210 virtual int GetDialogRelatedControlVerticalSpacing(); 210 virtual int GetDialogRelatedControlVerticalSpacing();
211 211
212 // Returns the minimum size of a dialog button.
213 virtual int GetDialogButtonMinimumWidth();
214
212 // Returns the insets that should be applied around a dialog's frame view. 215 // Returns the insets that should be applied around a dialog's frame view.
213 virtual gfx::Insets GetDialogFrameViewInsets(); 216 virtual gfx::Insets GetDialogFrameViewInsets();
214 217
215 // Returns the margins that should be applied around a bubble dialog. 218 // Returns the margins that should be applied around a bubble dialog.
216 virtual gfx::Insets GetBubbleDialogMargins(); 219 virtual gfx::Insets GetBubbleDialogMargins();
217 220
218 protected: 221 protected:
219 ViewsDelegate(); 222 ViewsDelegate();
220 223
221 private: 224 private:
222 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 225 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
223 226
224 #if defined(USE_AURA) 227 #if defined(USE_AURA)
225 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; 228 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_;
226 #endif 229 #endif
227 230
228 NativeWidgetFactory native_widget_factory_; 231 NativeWidgetFactory native_widget_factory_;
229 232
230 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 233 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
231 }; 234 };
232 235
233 } // namespace views 236 } // namespace views
234 237
235 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 238 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698