| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/passwords/manage_passwords_bubble_view.h" | 5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/browser_finder.h" | 8 #include "chrome/browser/ui/browser_finder.h" |
| 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
| 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 620 |
| 621 parent_->set_initially_focused_view(ok_button_); | 621 parent_->set_initially_focused_view(ok_button_); |
| 622 } | 622 } |
| 623 | 623 |
| 624 ManagePasswordsBubbleView::SaveConfirmationView::~SaveConfirmationView() { | 624 ManagePasswordsBubbleView::SaveConfirmationView::~SaveConfirmationView() { |
| 625 } | 625 } |
| 626 | 626 |
| 627 void ManagePasswordsBubbleView::SaveConfirmationView::StyledLabelLinkClicked( | 627 void ManagePasswordsBubbleView::SaveConfirmationView::StyledLabelLinkClicked( |
| 628 const gfx::Range& range, int event_flags) { | 628 const gfx::Range& range, int event_flags) { |
| 629 DCHECK_EQ(range, parent_->model()->save_confirmation_link_range()); | 629 DCHECK_EQ(range, parent_->model()->save_confirmation_link_range()); |
| 630 parent_->model()->OnRemoteManageLinkClicked(); | 630 parent_->model()->OnManageLinkClicked(); |
| 631 parent_->Close(); | 631 parent_->Close(); |
| 632 } | 632 } |
| 633 | 633 |
| 634 void ManagePasswordsBubbleView::SaveConfirmationView::ButtonPressed( | 634 void ManagePasswordsBubbleView::SaveConfirmationView::ButtonPressed( |
| 635 views::Button* sender, const ui::Event& event) { | 635 views::Button* sender, const ui::Event& event) { |
| 636 DCHECK_EQ(sender, ok_button_); | 636 DCHECK_EQ(sender, ok_button_); |
| 637 parent_->model()->OnOKClicked(); | 637 parent_->model()->OnOKClicked(); |
| 638 parent_->Close(); | 638 parent_->Close(); |
| 639 } | 639 } |
| 640 | 640 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 void ManagePasswordsBubbleView::WindowClosing() { | 849 void ManagePasswordsBubbleView::WindowClosing() { |
| 850 // Close() closes the window asynchronously, so by the time we reach here, | 850 // Close() closes the window asynchronously, so by the time we reach here, |
| 851 // |manage_passwords_bubble_| may have already been reset. | 851 // |manage_passwords_bubble_| may have already been reset. |
| 852 if (manage_passwords_bubble_ == this) | 852 if (manage_passwords_bubble_ == this) |
| 853 manage_passwords_bubble_ = NULL; | 853 manage_passwords_bubble_ = NULL; |
| 854 } | 854 } |
| 855 | 855 |
| 856 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { | 856 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { |
| 857 return initially_focused_view_; | 857 return initially_focused_view_; |
| 858 } | 858 } |
| OLD | NEW |