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

Side by Side Diff: ui/views/window/dialog_client_view.cc

Issue 11421164: Migrate CollectedCookiesViews to Chrome style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/window/dialog_client_view.h ('k') | ui/views/window/dialog_delegate.h » ('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 #include "ui/views/window/dialog_client_view.h" 5 #include "ui/views/window/dialog_client_view.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 void DialogClientView::CancelWindow() { 256 void DialogClientView::CancelWindow() {
257 // Call the standard Close handler, which checks with the delegate before 257 // Call the standard Close handler, which checks with the delegate before
258 // proceeding. This checking _isn't_ done here, but in the WM_CLOSE handler, 258 // proceeding. This checking _isn't_ done here, but in the WM_CLOSE handler,
259 // so that the close box on the window also shares this code path. 259 // so that the close box on the window also shares this code path.
260 Close(); 260 Close();
261 } 261 }
262 262
263 // static 263 // static
264 DialogClientView::StyleParams DialogClientView::GetChromeStyleParams() { 264 DialogClientView::StyleParams DialogClientView::GetChromeStyleParams(
265 int button_vedge_margin,
266 int button_hedge_margin) {
265 StyleParams params; 267 StyleParams params;
266 params.button_vedge_margin = 0; 268 params.button_vedge_margin = button_vedge_margin;
267 params.button_hedge_margin = 0; 269 params.button_hedge_margin = button_hedge_margin;
268 params.button_shadow_margin = views::GetChromeStyleButtonShadowMargin(); 270 params.button_shadow_margin = views::GetChromeStyleButtonShadowMargin();
269 params.button_content_spacing = 0; 271 params.button_content_spacing = 0;
270 params.related_button_hspacing = 10; 272 params.related_button_hspacing = 10;
271 return params; 273 return params;
272 } 274 }
273 275
274 int DialogClientView::GetBottomMargin() { 276 int DialogClientView::GetBottomMargin() {
275 return style_params_.button_shadow_margin; 277 return style_params_.button_shadow_margin;
276 } 278 }
277 279
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 } 571 }
570 saved_focus_manager_ = focus_manager; 572 saved_focus_manager_ = focus_manager;
571 // Listen for focus change events so we can update the default button. 573 // Listen for focus change events so we can update the default button.
572 if (focus_manager) { 574 if (focus_manager) {
573 focus_manager->AddFocusChangeListener(this); 575 focus_manager->AddFocusChangeListener(this);
574 listening_to_focus_ = true; 576 listening_to_focus_ = true;
575 } 577 }
576 } 578 }
577 579
578 } // namespace views 580 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/window/dialog_client_view.h ('k') | ui/views/window/dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698