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

Side by Side Diff: chrome/browser/ui/views/website_settings/website_settings_popup_view.cc

Issue 2675983003: views::Separator cleanup. (Closed)
Patch Set: fix another callsite 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 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h " 5 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 1, 411 1,
412 views::GridLayout::USE_PREF, 412 views::GridLayout::USE_PREF,
413 0, 413 0,
414 0); 414 0);
415 415
416 header_ = new PopupHeaderView(this, this); 416 header_ = new PopupHeaderView(this, this);
417 layout->StartRow(1, content_column); 417 layout->StartRow(1, content_column);
418 layout->AddView(header_); 418 layout->AddView(header_);
419 419
420 layout->StartRow(0, content_column); 420 layout->StartRow(0, content_column);
421 separator_ = new views::Separator(views::Separator::HORIZONTAL); 421 separator_ = new views::Separator();
422 layout->AddView(separator_); 422 layout->AddView(separator_);
423 423
424 layout->AddPaddingRow(1, kHeaderMarginBottom); 424 layout->AddPaddingRow(1, kHeaderMarginBottom);
425 layout->StartRow(1, content_column); 425 layout->StartRow(1, content_column);
426 426
427 site_settings_view_ = CreateSiteSettingsView(); 427 site_settings_view_ = CreateSiteSettingsView();
428 layout->AddView(site_settings_view_); 428 layout->AddView(site_settings_view_);
429 429
430 // Remove the top margin from the client area so there is less space below the 430 // Remove the top margin from the client area so there is less space below the
431 // dialog title. 431 // dialog title.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 WebsiteSettings::WEBSITE_SETTINGS_CONNECTION_HELP_OPENED); 737 WebsiteSettings::WEBSITE_SETTINGS_CONNECTION_HELP_OPENED);
738 break; 738 break;
739 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: 739 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS:
740 presenter_->OnRevokeSSLErrorBypassButtonPressed(); 740 presenter_->OnRevokeSSLErrorBypassButtonPressed();
741 GetWidget()->Close(); 741 GetWidget()->Close();
742 break; 742 break;
743 default: 743 default:
744 NOTREACHED(); 744 NOTREACHED();
745 } 745 }
746 } 746 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698