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

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

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)
Patch Set: remove old DEPS entry Created 3 years, 8 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
« no previous file with comments | « ui/views/layout/grid_layout.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 enum class InsetsMetric { 65 enum class InsetsMetric {
66 // The margins that should be applied around a bubble dialog. 66 // The margins that should be applied around a bubble dialog.
67 BUBBLE_DIALOG, 67 BUBBLE_DIALOG,
68 // The insets that should be applied around a DialogClientView. Note that 68 // The insets that should be applied around a DialogClientView. Note that
69 // the top inset is used for the distance between the buttons and the 69 // the top inset is used for the distance between the buttons and the
70 // DialogClientView's content view. 70 // DialogClientView's content view.
71 DIALOG_BUTTON, 71 DIALOG_BUTTON,
72 // The insets that should be applied around a dialog's frame view. 72 // The insets that should be applied around a dialog's frame view.
73 DIALOG_FRAME_VIEW, 73 DIALOG_FRAME_VIEW,
74 // The margins that should be applied around a panel GridLayout.
75 PANEL,
74 // Padding to add to vector image buttons to increase their click and touch 76 // Padding to add to vector image buttons to increase their click and touch
75 // target size. 77 // target size.
76 VECTOR_IMAGE_BUTTON_PADDING, 78 VECTOR_IMAGE_BUTTON_PADDING,
77 }; 79 };
78 80
79 enum class DistanceMetric { 81 enum class DistanceMetric {
80 // The default padding to add on each side of a button's label. 82 // The default padding to add on each side of a button's label.
81 BUTTON_HORIZONTAL_PADDING, 83 BUTTON_HORIZONTAL_PADDING,
82 // The distance between a dialog's edge and the close button in the upper 84 // The distance between a dialog's edge and the close button in the upper
83 // trailing corner. 85 // trailing corner.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 #endif 275 #endif
274 276
275 NativeWidgetFactory native_widget_factory_; 277 NativeWidgetFactory native_widget_factory_;
276 278
277 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 279 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
278 }; 280 };
279 281
280 } // namespace views 282 } // namespace views
281 283
282 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 284 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/layout/grid_layout.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698