OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |