| 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 "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "ui/views/controls/link_listener.h" | 30 #include "ui/views/controls/link_listener.h" |
| 31 #include "ui/views/controls/separator.h" | 31 #include "ui/views/controls/separator.h" |
| 32 #include "ui/views/controls/styled_label.h" | 32 #include "ui/views/controls/styled_label.h" |
| 33 #include "ui/views/controls/styled_label_listener.h" | 33 #include "ui/views/controls/styled_label_listener.h" |
| 34 #include "ui/views/layout/fill_layout.h" | 34 #include "ui/views/layout/fill_layout.h" |
| 35 #include "ui/views/layout/grid_layout.h" | 35 #include "ui/views/layout/grid_layout.h" |
| 36 #include "ui/views/layout/layout_constants.h" | 36 #include "ui/views/layout/layout_constants.h" |
| 37 #include "ui/views/widget/widget.h" | 37 #include "ui/views/widget/widget.h" |
| 38 | 38 |
| 39 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
| 40 #include "chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_vi
ew.h" | 40 #include "chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_bu
bble_view.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 int ManagePasswordsBubbleView::auto_signin_toast_timeout_ = 3; | 43 int ManagePasswordsBubbleView::auto_signin_toast_timeout_ = 3; |
| 44 | 44 |
| 45 // Helpers -------------------------------------------------------------------- | 45 // Helpers -------------------------------------------------------------------- |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 | 48 |
| 49 enum ColumnSetType { | 49 enum ColumnSetType { |
| 50 // | | (FILL, FILL) | | | 50 // | | (FILL, FILL) | | |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 } else if (model_.state() == password_manager::ui::CONFIRMATION_STATE) { | 823 } else if (model_.state() == password_manager::ui::CONFIRMATION_STATE) { |
| 824 AddChildView(new SaveConfirmationView(this)); | 824 AddChildView(new SaveConfirmationView(this)); |
| 825 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { | 825 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { |
| 826 AddChildView(new AutoSigninView(this)); | 826 AddChildView(new AutoSigninView(this)); |
| 827 } else if (model_.state() == | 827 } else if (model_.state() == |
| 828 password_manager::ui::CHROME_SIGN_IN_PROMO_STATE) { | 828 password_manager::ui::CHROME_SIGN_IN_PROMO_STATE) { |
| 829 AddChildView(new SignInPromoView(this)); | 829 AddChildView(new SignInPromoView(this)); |
| 830 #if defined(OS_WIN) | 830 #if defined(OS_WIN) |
| 831 } else if (model_.state() == | 831 } else if (model_.state() == |
| 832 password_manager::ui::CHROME_DESKTOP_IOS_PROMO_STATE) { | 832 password_manager::ui::CHROME_DESKTOP_IOS_PROMO_STATE) { |
| 833 AddChildView(new DesktopIOSPromotionView( | 833 AddChildView(new DesktopIOSPromotionBubbleView( |
| 834 model_.GetProfile(), |
| 834 desktop_ios_promotion::PromotionEntryPoint::SAVE_PASSWORD_BUBBLE)); | 835 desktop_ios_promotion::PromotionEntryPoint::SAVE_PASSWORD_BUBBLE)); |
| 835 #endif | 836 #endif |
| 836 } else { | 837 } else { |
| 837 AddChildView(new ManageView(this)); | 838 AddChildView(new ManageView(this)); |
| 838 } | 839 } |
| 839 } | 840 } |
| OLD | NEW |