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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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 "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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/website_settings_popup_view.h ('k') | chrome/browser/ui/views/wrench_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698