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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 2905243003: Cleanup BookmarkBubbleView, remove LocationBarBubbleDelegateView::GetDialogButtons() (Closed)
Patch Set: Rebase for r475249 Created 3 years, 6 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 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 "base/macros.h" 7 #include "base/macros.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 mouse_handler_.reset(new WebContentMouseHandler(this, this->web_contents())); 806 mouse_handler_.reset(new WebContentMouseHandler(this, this->web_contents()));
807 manage_passwords_bubble_ = this; 807 manage_passwords_bubble_ = this;
808 chrome::RecordDialogCreation(chrome::DialogIdentifier::MANAGE_PASSWORDS); 808 chrome::RecordDialogCreation(chrome::DialogIdentifier::MANAGE_PASSWORDS);
809 } 809 }
810 810
811 ManagePasswordsBubbleView::~ManagePasswordsBubbleView() { 811 ManagePasswordsBubbleView::~ManagePasswordsBubbleView() {
812 if (manage_passwords_bubble_ == this) 812 if (manage_passwords_bubble_ == this)
813 manage_passwords_bubble_ = nullptr; 813 manage_passwords_bubble_ = nullptr;
814 } 814 }
815 815
816 int ManagePasswordsBubbleView::GetDialogButtons() const {
817 // TODO(tapted): DialogClientView should manage buttons.
818 return ui::DIALOG_BUTTON_NONE;
819 }
820
816 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { 821 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() {
817 return initially_focused_view_; 822 return initially_focused_view_;
818 } 823 }
819 824
820 void ManagePasswordsBubbleView::Init() { 825 void ManagePasswordsBubbleView::Init() {
821 SetLayoutManager(new views::FillLayout); 826 SetLayoutManager(new views::FillLayout);
822 827
823 CreateChild(); 828 CreateChild();
824 } 829 }
825 830
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } else if (model_.state() == 901 } else if (model_.state() ==
897 password_manager::ui::CHROME_DESKTOP_IOS_PROMO_STATE) { 902 password_manager::ui::CHROME_DESKTOP_IOS_PROMO_STATE) {
898 AddChildView(new DesktopIOSPromotionBubbleView( 903 AddChildView(new DesktopIOSPromotionBubbleView(
899 model_.GetProfile(), 904 model_.GetProfile(),
900 desktop_ios_promotion::PromotionEntryPoint::SAVE_PASSWORD_BUBBLE)); 905 desktop_ios_promotion::PromotionEntryPoint::SAVE_PASSWORD_BUBBLE));
901 #endif 906 #endif
902 } else { 907 } else {
903 AddChildView(new ManageView(this)); 908 AddChildView(new ManageView(this));
904 } 909 }
905 } 910 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698