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

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

Issue 2671443002: Make the extra padding around VectorIconButtons configurable. (Closed)
Patch Set: Resync Created 3 years, 9 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/layout_constants.h ('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 <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // Returns the default minimum width of a button. 222 // Returns the default minimum width of a button.
223 virtual int GetButtonMinimumWidth() const; 223 virtual int GetButtonMinimumWidth() const;
224 224
225 // Returns the minimum width of a dialog button. 225 // Returns the minimum width of a dialog button.
226 virtual int GetDialogButtonMinimumWidth() const; 226 virtual int GetDialogButtonMinimumWidth() const;
227 227
228 // Returns the default padding to add on each side of a button's label. 228 // Returns the default padding to add on each side of a button's label.
229 virtual int GetButtonHorizontalPadding() const; 229 virtual int GetButtonHorizontalPadding() const;
230 230
231 // Returns the margins that should be placed around a button's content.
232 virtual gfx::Insets GetButtonMargins() const;
233
231 protected: 234 protected:
232 ViewsDelegate(); 235 ViewsDelegate();
233 236
234 private: 237 private:
235 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 238 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
236 239
237 #if defined(USE_AURA) 240 #if defined(USE_AURA)
238 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; 241 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_;
239 #endif 242 #endif
240 243
241 NativeWidgetFactory native_widget_factory_; 244 NativeWidgetFactory native_widget_factory_;
242 245
243 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 246 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
244 }; 247 };
245 248
246 } // namespace views 249 } // namespace views
247 250
248 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 251 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/layout/layout_constants.h ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698