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

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

Issue 2550323004: views: support Harmony title insets (Closed)
Patch Set: Created 4 years 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/views_delegate.h ('k') | ui/views/window/dialog_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "ui/views/views_delegate.h" 5 #include "ui/views/views_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/views/layout/layout_constants.h" 9 #include "ui/views/layout/layout_constants.h"
10 #include "ui/views/views_touch_selection_controller_factory.h" 10 #include "ui/views/views_touch_selection_controller_factory.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 gfx::Insets ViewsDelegate::GetDialogButtonInsets() { 125 gfx::Insets ViewsDelegate::GetDialogButtonInsets() {
126 return gfx::Insets(0, kButtonHEdgeMarginNew, kButtonVEdgeMarginNew, 126 return gfx::Insets(0, kButtonHEdgeMarginNew, kButtonVEdgeMarginNew,
127 kButtonHEdgeMarginNew); 127 kButtonHEdgeMarginNew);
128 } 128 }
129 129
130 int ViewsDelegate::GetDialogRelatedButtonHorizontalSpacing() { 130 int ViewsDelegate::GetDialogRelatedButtonHorizontalSpacing() {
131 return kRelatedButtonHSpacing; 131 return kRelatedButtonHSpacing;
132 } 132 }
133 133
134 gfx::Insets ViewsDelegate::GetDialogFrameViewInsets() {
135 return gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew, 0,
136 kButtonHEdgeMarginNew);
137 }
138
134 ViewsDelegate::ViewsDelegate() 139 ViewsDelegate::ViewsDelegate()
135 : views_tsc_factory_(new ViewsTouchEditingControllerFactory) { 140 : views_tsc_factory_(new ViewsTouchEditingControllerFactory) {
136 DCHECK(!views_delegate); 141 DCHECK(!views_delegate);
137 views_delegate = this; 142 views_delegate = this;
138 143
139 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); 144 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get());
140 145
141 #if defined(USE_AURA) 146 #if defined(USE_AURA)
142 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); 147 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews());
143 #endif 148 #endif
144 } 149 }
145 150
146 } // namespace views 151 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/views_delegate.h ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698