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 "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/certificate_viewer.h" | 9 #include "chrome/browser/certificate_viewer.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 anchor.Inset(0, anchor_view() ? kLocationIconBottomMargin : 0); | 359 anchor.Inset(0, anchor_view() ? kLocationIconBottomMargin : 0); |
360 return anchor; | 360 return anchor; |
361 } | 361 } |
362 | 362 |
363 void WebsiteSettingsPopupView::OnWidgetClosing(views::Widget* widget) { | 363 void WebsiteSettingsPopupView::OnWidgetClosing(views::Widget* widget) { |
364 presenter_->OnUIClosing(); | 364 presenter_->OnUIClosing(); |
365 } | 365 } |
366 | 366 |
367 void WebsiteSettingsPopupView::ButtonPressed( | 367 void WebsiteSettingsPopupView::ButtonPressed( |
368 views::Button* button, | 368 views::Button* button, |
369 const views::Event& event) { | 369 const ui::Event& event) { |
370 GetWidget()->Close(); | 370 GetWidget()->Close(); |
371 } | 371 } |
372 | 372 |
373 void WebsiteSettingsPopupView::LinkClicked(views::Link* source, | 373 void WebsiteSettingsPopupView::LinkClicked(views::Link* source, |
374 int event_flags) { | 374 int event_flags) { |
375 if (source == cookie_dialog_link_) { | 375 if (source == cookie_dialog_link_) { |
376 new CollectedCookiesViews(tab_contents_); | 376 new CollectedCookiesViews(tab_contents_); |
377 } else if (source == certificate_dialog_link_) { | 377 } else if (source == certificate_dialog_link_) { |
378 gfx::NativeWindow parent = | 378 gfx::NativeWindow parent = |
379 anchor_view() ? anchor_view()->GetWidget()->GetNativeWindow() : NULL; | 379 anchor_view() ? anchor_view()->GetWidget()->GetNativeWindow() : NULL; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 708 |
709 if (link) { | 709 if (link) { |
710 content_layout->StartRow(1, 0); | 710 content_layout->StartRow(1, 0); |
711 content_layout->AddView(link); | 711 content_layout->AddView(link); |
712 } | 712 } |
713 | 713 |
714 layout->AddView(content_pane, 1, 1, views::GridLayout::LEADING, | 714 layout->AddView(content_pane, 1, 1, views::GridLayout::LEADING, |
715 views::GridLayout::LEADING); | 715 views::GridLayout::LEADING); |
716 layout->AddPaddingRow(0, kConnectionSectionPaddingBottom); | 716 layout->AddPaddingRow(0, kConnectionSectionPaddingBottom); |
717 } | 717 } |
OLD | NEW |